2016-10-05 15:13:31 +02:00
|
|
|
CMAC self test
|
|
|
|
mbedtls_cmac_self_test:
|
|
|
|
|
2016-10-10 22:41:03 +02:00
|
|
|
CMAC null arguments
|
2022-09-27 15:27:56 +02:00
|
|
|
depends_on:MBEDTLS_AES_C
|
2016-10-10 22:41:03 +02:00
|
|
|
mbedtls_cmac_null_args:
|
|
|
|
|
2016-10-05 15:13:31 +02:00
|
|
|
CMAC init #1 AES-128: OK
|
|
|
|
depends_on:MBEDTLS_AES_C
|
|
|
|
mbedtls_cmac_setkey:MBEDTLS_CIPHER_AES_128_ECB:128:0
|
|
|
|
|
|
|
|
CMAC init #2 AES-192: OK
|
2023-04-19 07:35:49 +02:00
|
|
|
depends_on:MBEDTLS_AES_C:!MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH
|
2016-10-05 15:13:31 +02:00
|
|
|
mbedtls_cmac_setkey:MBEDTLS_CIPHER_AES_192_ECB:192:0
|
|
|
|
|
|
|
|
CMAC init #3 AES-256: OK
|
2023-04-19 07:35:49 +02:00
|
|
|
depends_on:MBEDTLS_AES_C:!MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH
|
2016-10-05 15:13:31 +02:00
|
|
|
mbedtls_cmac_setkey:MBEDTLS_CIPHER_AES_256_ECB:256:0
|
|
|
|
|
2022-09-27 15:27:56 +02:00
|
|
|
CMAC init #4 3DES: OK
|
2016-10-05 15:13:31 +02:00
|
|
|
depends_on:MBEDTLS_DES_C
|
|
|
|
mbedtls_cmac_setkey:MBEDTLS_CIPHER_DES_EDE3_ECB:192:0
|
|
|
|
|
|
|
|
CMAC init #5 AES-224: bad key size
|
|
|
|
depends_on:MBEDTLS_AES_C
|
2022-09-29 09:53:20 +02:00
|
|
|
mbedtls_cmac_setkey:MBEDTLS_CIPHER_AES_128_ECB:224:MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA
|
2016-10-05 15:13:31 +02:00
|
|
|
|
2016-10-10 22:41:03 +02:00
|
|
|
CMAC init #6 AES-0: bad key size
|
|
|
|
depends_on:MBEDTLS_AES_C
|
2022-09-29 09:53:20 +02:00
|
|
|
mbedtls_cmac_setkey:MBEDTLS_CIPHER_AES_128_ECB:0:MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA
|
2016-10-10 22:41:03 +02:00
|
|
|
|
2023-06-14 17:38:43 +02:00
|
|
|
CMAC init Camellia-128: wrong cipher
|
2016-10-05 15:13:31 +02:00
|
|
|
depends_on:MBEDTLS_CAMELLIA_C
|
2023-06-14 17:38:43 +02:00
|
|
|
mbedtls_cmac_setkey:MBEDTLS_CIPHER_CAMELLIA_128_ECB:128:MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA
|
|
|
|
|
|
|
|
CMAC init Camellia-192: wrong cipher
|
|
|
|
depends_on:MBEDTLS_CAMELLIA_C
|
|
|
|
mbedtls_cmac_setkey:MBEDTLS_CIPHER_CAMELLIA_192_ECB:192:MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA
|
|
|
|
|
|
|
|
CMAC init Camellia-256: wrong cipher
|
|
|
|
depends_on:MBEDTLS_CAMELLIA_C
|
|
|
|
mbedtls_cmac_setkey:MBEDTLS_CIPHER_CAMELLIA_256_ECB:256:MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA
|
|
|
|
|
|
|
|
CMAC init #8 ARIA-128: wrong cipher
|
|
|
|
depends_on:MBEDTLS_ARIA_C
|
|
|
|
mbedtls_cmac_setkey:MBEDTLS_CIPHER_ARIA_128_ECB:128:MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA
|
|
|
|
|
|
|
|
CMAC init #8 ARIA-192: wrong cipher
|
|
|
|
depends_on:MBEDTLS_ARIA_C
|
|
|
|
mbedtls_cmac_setkey:MBEDTLS_CIPHER_ARIA_192_ECB:192:MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA
|
|
|
|
|
|
|
|
CMAC init #8 ARIA-256: wrong cipher
|
|
|
|
depends_on:MBEDTLS_ARIA_C
|
|
|
|
mbedtls_cmac_setkey:MBEDTLS_CIPHER_ARIA_256_ECB:256:MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA
|
2016-10-05 15:13:31 +02:00
|
|
|
|
2023-12-29 14:07:11 +01:00
|
|
|
CMAC Single Blocks #1 AES-128 - Empty block, no updates
|
2022-09-27 15:27:56 +02:00
|
|
|
depends_on:MBEDTLS_AES_C
|
2016-10-10 22:41:03 +02:00
|
|
|
mbedtls_cmac_multiple_blocks:MBEDTLS_CIPHER_AES_128_ECB:"2b7e151628aed2a6abf7158809cf4f3c":128:16:"":-1:"":-1:"":-1:"":-1:"bb1d6929e95937287fa37d129b756746"
|
|
|
|
|
2023-12-29 14:07:11 +01:00
|
|
|
CMAC Single Blocks #2 AES-128 - Single 16 byte block
|
2022-09-27 15:27:56 +02:00
|
|
|
depends_on:MBEDTLS_AES_C
|
2016-10-10 22:41:03 +02:00
|
|
|
mbedtls_cmac_multiple_blocks:MBEDTLS_CIPHER_AES_128_ECB:"2b7e151628aed2a6abf7158809cf4f3c":128:16:"6bc1bee22e409f96e93d7e117393172a":16:"":-1:"":-1:"":-1:"070a16b46b4d4144f79bdd9dd04a287c"
|
|
|
|
|
2023-12-29 14:07:11 +01:00
|
|
|
CMAC Single Blocks #3 AES-128 - Single 64 byte block
|
2022-09-27 15:27:56 +02:00
|
|
|
depends_on:MBEDTLS_AES_C
|
2016-10-10 22:41:03 +02:00
|
|
|
mbedtls_cmac_multiple_blocks:MBEDTLS_CIPHER_AES_128_ECB:"2b7e151628aed2a6abf7158809cf4f3c":128:16:"6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710":64:"":-1:"":-1:"":-1:"51f0bebf7e3b9d92fc49741779363cfe"
|
|
|
|
|
2023-12-29 14:07:11 +01:00
|
|
|
CMAC Multiple Blocks #1 AES-128 - Multiple 8 byte blocks
|
2022-09-27 15:27:56 +02:00
|
|
|
depends_on:MBEDTLS_AES_C
|
2016-10-10 22:41:03 +02:00
|
|
|
mbedtls_cmac_multiple_blocks:MBEDTLS_CIPHER_AES_128_ECB:"2b7e151628aed2a6abf7158809cf4f3c":128:16:"6bc1bee22e409f96":8:"e93d7e117393172a":8:"":-1:"":-1:"070a16b46b4d4144f79bdd9dd04a287c"
|
|
|
|
|
2023-12-29 14:07:11 +01:00
|
|
|
CMAC Multiple Blocks #2 AES-128 - Multiple 16 byte blocks
|
2022-09-27 15:27:56 +02:00
|
|
|
depends_on:MBEDTLS_AES_C
|
2016-10-10 22:41:03 +02:00
|
|
|
mbedtls_cmac_multiple_blocks:MBEDTLS_CIPHER_AES_128_ECB:"2b7e151628aed2a6abf7158809cf4f3c":128:16:"6bc1bee22e409f96e93d7e117393172a":16:"ae2d8a571e03ac9c9eb76fac45af8e51":16:"30c81c46a35ce411e5fbc1191a0a52ef":16:"f69f2445df4f9b17ad2b417be66c3710":16:"51f0bebf7e3b9d92fc49741779363cfe"
|
|
|
|
|
2023-12-29 14:07:11 +01:00
|
|
|
CMAC Multiple Blocks #3 AES-128 - Multiple variable sized blocks
|
2022-09-27 15:27:56 +02:00
|
|
|
depends_on:MBEDTLS_AES_C
|
2016-10-10 22:41:03 +02:00
|
|
|
mbedtls_cmac_multiple_blocks:MBEDTLS_CIPHER_AES_128_ECB:"2b7e151628aed2a6abf7158809cf4f3c":128:16:"6bc1bee22e409f96":8:"e93d7e117393172aae2d8a571e03ac9c":16:"9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52ef":24:"f69f2445df4f9b17ad2b417be66c3710":16:"51f0bebf7e3b9d92fc49741779363cfe"
|
|
|
|
|
2023-12-29 14:07:11 +01:00
|
|
|
CMAC Multiple Blocks #4 AES-128 - Multiple 8 byte blocks with gaps
|
2022-09-27 15:27:56 +02:00
|
|
|
depends_on:MBEDTLS_AES_C
|
2016-10-10 22:41:03 +02:00
|
|
|
mbedtls_cmac_multiple_blocks:MBEDTLS_CIPHER_AES_128_ECB:"2b7e151628aed2a6abf7158809cf4f3c":128:16:"":0:"6bc1bee22e409f96":8:"":0:"e93d7e117393172a":8:"070a16b46b4d4144f79bdd9dd04a287c"
|
|
|
|
|
2023-12-29 14:07:11 +01:00
|
|
|
CMAC Multiple Operations, same key #1 AES-192 - Empty, empty
|
2023-04-19 07:35:49 +02:00
|
|
|
depends_on:MBEDTLS_AES_C:!MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH
|
2016-10-10 22:41:03 +02:00
|
|
|
mbedtls_cmac_multiple_operations_same_key:MBEDTLS_CIPHER_AES_192_ECB:"8e73b0f7da0e6452c810f32b809079e562f8ead2522c6b7b":192:16:"":-1:"":-1:"":-1:"d17ddf46adaacde531cac483de7a9367":"":-1:"":-1:"":-1:"d17ddf46adaacde531cac483de7a9367"
|
|
|
|
|
2023-12-29 14:07:11 +01:00
|
|
|
CMAC Multiple Operations, same key #2 AES-192 - Empty, 64 byte block
|
2023-04-19 07:35:49 +02:00
|
|
|
depends_on:MBEDTLS_AES_C:!MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH
|
2016-10-10 22:41:03 +02:00
|
|
|
mbedtls_cmac_multiple_operations_same_key:MBEDTLS_CIPHER_AES_192_ECB:"8e73b0f7da0e6452c810f32b809079e562f8ead2522c6b7b":192:16:"":-1:"":-1:"":-1:"d17ddf46adaacde531cac483de7a9367":"6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710":64:"":-1:"":-1:"a1d5df0eed790f794d77589659f39a11"
|
|
|
|
|
2023-12-29 14:07:11 +01:00
|
|
|
CMAC Multiple Operations, same key #3 AES-192 - variable byte blocks
|
2023-04-19 07:35:49 +02:00
|
|
|
depends_on:MBEDTLS_AES_C:!MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH
|
2016-10-10 22:41:03 +02:00
|
|
|
mbedtls_cmac_multiple_operations_same_key:MBEDTLS_CIPHER_AES_192_ECB:"8e73b0f7da0e6452c810f32b809079e562f8ead2522c6b7b":192:16:"6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e51":32:"30c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710":32:"":-1:"a1d5df0eed790f794d77589659f39a11":"6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e51":32:"30c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710":32:"":-1:"a1d5df0eed790f794d77589659f39a11"
|
|
|
|
|