mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-25 02:41:07 +00:00
fba5921186
CRC is calculated when the key is set. This commit also adds new tests for ecb encryption and decryption, simulating a fault injection after the key is set. Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
47 lines
3 KiB
Plaintext
47 lines
3 KiB
Plaintext
AES-128-ECB Encrypt NIST KAT #1 good CRC
|
|
aes_encrypt_ecb_crc:"00000000000000000000000000000000":"f34481ec3cc627bacd5dc3fb08f273e6":"0336763e966d92595a567cc9ce537f5e":0:0:1
|
|
|
|
AES-128-ECB Encrypt NIST KAT #1 bad CRC
|
|
aes_encrypt_ecb_crc:"00000000000000000000000000000000":"f34481ec3cc627bacd5dc3fb08f273e6":"00000000000000000000000000000000":42:MBEDTLS_ERR_PLATFORM_FAULT_DETECTED:0
|
|
|
|
AES-128-ECB Decrypt NIST KAT #1 good CRC
|
|
depends_on:!MBEDTLS_AES_ONLY_ENCRYPT
|
|
aes_decrypt_ecb_crc:"00000000000000000000000000000000":"db4f1aa530967d6732ce4715eb0ee24b":"ff000000000000000000000000000000":614:0:1
|
|
|
|
AES-128-ECB Decrypt NIST KAT #1 bad CRC
|
|
depends_on:!MBEDTLS_AES_ONLY_ENCRYPT
|
|
aes_decrypt_ecb_crc:"00000000000000000000000000000000":"db4f1aa530967d6732ce4715eb0ee24b":"00000000000000000000000000000000":42:MBEDTLS_ERR_PLATFORM_FAULT_DETECTED:0
|
|
|
|
AES-192-ECB Encrypt NIST KAT #1 good CRC
|
|
depends_on:!MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH
|
|
aes_encrypt_ecb_crc:"000000000000000000000000000000000000000000000000":"fffffffffffffffffffff80000000000":"156f07767a85a4312321f63968338a01":0:0:1
|
|
|
|
AES-192-ECB Encrypt NIST KAT #1 bad CRC
|
|
depends_on:!MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH
|
|
aes_encrypt_ecb_crc:"000000000000000000000000000000000000000000000000":"fffffffffffffffffffff80000000000":"00000000000000000000000000000000":42:MBEDTLS_ERR_PLATFORM_FAULT_DETECTED:0
|
|
|
|
AES-192-ECB Decrypt NIST KAT #1 good CRC
|
|
depends_on:!MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH:!MBEDTLS_AES_ONLY_ENCRYPT
|
|
aes_decrypt_ecb_crc:"fffffffffffffffffffffffffffffffff000000000000000":"bb2852c891c5947d2ed44032c421b85f":"00000000000000000000000000000000":31004:0:1
|
|
|
|
AES-192-ECB Decrypt NIST KAT #1 bad CRC
|
|
depends_on:!MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH:!MBEDTLS_AES_ONLY_ENCRYPT
|
|
aes_decrypt_ecb_crc:"fffffffffffffffffffffffffffffffff000000000000000":"bb2852c891c5947d2ed44032c421b85f":"00000000000000000000000000000000":42:MBEDTLS_ERR_PLATFORM_FAULT_DETECTED:0
|
|
|
|
AES-256-ECB Encrypt NIST KAT #1 good CRC
|
|
depends_on:!MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH
|
|
aes_encrypt_ecb_crc:"c1cc358b449909a19436cfbb3f852ef8bcb5ed12ac7058325f56e6099aab1a1c":"00000000000000000000000000000000":"352065272169abf9856843927d0674fd":61384:0:1
|
|
|
|
AES-256-ECB Encrypt NIST KAT #1 bad CRC
|
|
depends_on:!MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH
|
|
aes_encrypt_ecb_crc:"c1cc358b449909a19436cfbb3f852ef8bcb5ed12ac7058325f56e6099aab1a1c":"00000000000000000000000000000000":"00000000000000000000000000000000":42:MBEDTLS_ERR_PLATFORM_FAULT_DETECTED:0
|
|
|
|
AES-256-ECB Decrypt NIST KAT #1 good CRC
|
|
depends_on:!MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH:!MBEDTLS_AES_ONLY_ENCRYPT
|
|
aes_decrypt_ecb_crc:"fffffffffffffffffffffffffffffffffffffffffffffff00000000000000000":"edf61ae362e882ddc0167474a7a77f3a":"00000000000000000000000000000000":32504:0:1
|
|
|
|
AES-256-ECB Decrypt NIST KAT #1 bad CRC
|
|
depends_on:!MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH:!MBEDTLS_AES_ONLY_ENCRYPT
|
|
aes_decrypt_ecb_crc:"fffffffffffffffffffffffffffffffffffffffffffffff00000000000000000":"edf61ae362e882ddc0167474a7a77f3a":"00000000000000000000000000000000":42:MBEDTLS_ERR_PLATFORM_FAULT_DETECTED:0
|
|
|