Add test cases with MD5, SHA1, SHA384
All started from a copy of the SHA256 block and modified as follows: - for MD5, just s/SHA256/MD5/ - for SHA384, adapt the dependency line then s/SHA256/SHA384 - for SHA1, s/SHA256/SHA1/ then manually adapt the plaintext length for the cases with "!trunc, B-1" and "!trunc, B", as the MAC length (20) is not a multiple of the block size (16) for this hash Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
e79e3bb2da
commit
7a1cb41ba2
@ -9374,6 +9374,134 @@ Record crypt, little space, NULL cipher, SSL3, MD5, short tag, EtM
|
||||
depends_on:MBEDTLS_CIPHER_NULL_CIPHER:MBEDTLS_SSL_PROTO_SSL3:MBEDTLS_MD5_C:MBEDTLS_SSL_ENCRYPT_THEN_MAC
|
||||
ssl_crypt_record_small:MBEDTLS_CIPHER_NULL:MBEDTLS_MD_MD5:1:1:MBEDTLS_SSL_MINOR_VERSION_0:0:0
|
||||
|
||||
Decrypt CBC !EtM, AES MD5 !trunc, 0, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_MD5_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_MD5:0:0:0
|
||||
|
||||
Decrypt CBC !EtM, AES MD5 !trunc, 0, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_MD5_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_MD5:0:0:1
|
||||
|
||||
Decrypt CBC !EtM, AES MD5 trunc, 0, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_MD5_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_MD5:1:0:0
|
||||
|
||||
Decrypt CBC !EtM, AES MD5 trunc, 0, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_MD5_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_MD5:1:0:1
|
||||
|
||||
Decrypt CBC !EtM, AES MD5 !trunc, 1, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_MD5_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_MD5:0:1:0
|
||||
|
||||
Decrypt CBC !EtM, AES MD5 !trunc, 1, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_MD5_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_MD5:0:1:1
|
||||
|
||||
Decrypt CBC !EtM, AES MD5 trunc, 1, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_MD5_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_MD5:1:1:0
|
||||
|
||||
Decrypt CBC !EtM, AES MD5 trunc, 1, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_MD5_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_MD5:1:1:1
|
||||
|
||||
Decrypt CBC !EtM, AES MD5 !trunc, B-1, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_MD5_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_MD5:0:15:0
|
||||
|
||||
Decrypt CBC !EtM, AES MD5 !trunc, B-1, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_MD5_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_MD5:0:15:1
|
||||
|
||||
Decrypt CBC !EtM, AES MD5 trunc, B-1, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_MD5_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_MD5:1:5:0
|
||||
|
||||
Decrypt CBC !EtM, AES MD5 trunc, B-1, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_MD5_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_MD5:1:5:1
|
||||
|
||||
Decrypt CBC !EtM, AES MD5 !trunc, B, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_MD5_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_MD5:0:16:0
|
||||
|
||||
Decrypt CBC !EtM, AES MD5 !trunc, B, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_MD5_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_MD5:0:16:1
|
||||
|
||||
Decrypt CBC !EtM, AES MD5 trunc, B, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_MD5_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_MD5:1:6:0
|
||||
|
||||
Decrypt CBC !EtM, AES MD5 trunc, B, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_MD5_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_MD5:1:6:1
|
||||
|
||||
Decrypt CBC !EtM, AES SHA1 !trunc, 0, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA1_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA1:0:0:0
|
||||
|
||||
Decrypt CBC !EtM, AES SHA1 !trunc, 0, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA1_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA1:0:0:1
|
||||
|
||||
Decrypt CBC !EtM, AES SHA1 trunc, 0, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA1_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA1:1:0:0
|
||||
|
||||
Decrypt CBC !EtM, AES SHA1 trunc, 0, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA1_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA1:1:0:1
|
||||
|
||||
Decrypt CBC !EtM, AES SHA1 !trunc, 1, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA1_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA1:0:1:0
|
||||
|
||||
Decrypt CBC !EtM, AES SHA1 !trunc, 1, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA1_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA1:0:1:1
|
||||
|
||||
Decrypt CBC !EtM, AES SHA1 trunc, 1, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA1_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA1:1:1:0
|
||||
|
||||
Decrypt CBC !EtM, AES SHA1 trunc, 1, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA1_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA1:1:1:1
|
||||
|
||||
Decrypt CBC !EtM, AES SHA1 !trunc, B-1, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA1_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA1:0:11:0
|
||||
|
||||
Decrypt CBC !EtM, AES SHA1 !trunc, B-1, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA1_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA1:0:11:1
|
||||
|
||||
Decrypt CBC !EtM, AES SHA1 trunc, B-1, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA1_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA1:1:5:0
|
||||
|
||||
Decrypt CBC !EtM, AES SHA1 trunc, B-1, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA1_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA1:1:5:1
|
||||
|
||||
Decrypt CBC !EtM, AES SHA1 !trunc, B, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA1_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA1:0:12:0
|
||||
|
||||
Decrypt CBC !EtM, AES SHA1 !trunc, B, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA1_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA1:0:12:1
|
||||
|
||||
Decrypt CBC !EtM, AES SHA1 trunc, B, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA1_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA1:1:6:0
|
||||
|
||||
Decrypt CBC !EtM, AES SHA1 trunc, B, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA1_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA1:1:6:1
|
||||
|
||||
Decrypt CBC !EtM, AES SHA256 !trunc, 0, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA256_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA256:0:0:0
|
||||
@ -9438,6 +9566,70 @@ Decrypt CBC !EtM, AES SHA256 trunc, B, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA256_C
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA256:1:6:1
|
||||
|
||||
Decrypt CBC !EtM, AES SHA384 !trunc, 0, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA512_C:!MBEDTLS_SHA512_NO_SHA384
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA384:0:0:0
|
||||
|
||||
Decrypt CBC !EtM, AES SHA384 !trunc, 0, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA512_C:!MBEDTLS_SHA512_NO_SHA384
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA384:0:0:1
|
||||
|
||||
Decrypt CBC !EtM, AES SHA384 trunc, 0, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA512_C:!MBEDTLS_SHA512_NO_SHA384
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA384:1:0:0
|
||||
|
||||
Decrypt CBC !EtM, AES SHA384 trunc, 0, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA512_C:!MBEDTLS_SHA512_NO_SHA384
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA384:1:0:1
|
||||
|
||||
Decrypt CBC !EtM, AES SHA384 !trunc, 1, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA512_C:!MBEDTLS_SHA512_NO_SHA384
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA384:0:1:0
|
||||
|
||||
Decrypt CBC !EtM, AES SHA384 !trunc, 1, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA512_C:!MBEDTLS_SHA512_NO_SHA384
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA384:0:1:1
|
||||
|
||||
Decrypt CBC !EtM, AES SHA384 trunc, 1, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA512_C:!MBEDTLS_SHA512_NO_SHA384
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA384:1:1:0
|
||||
|
||||
Decrypt CBC !EtM, AES SHA384 trunc, 1, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA512_C:!MBEDTLS_SHA512_NO_SHA384
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA384:1:1:1
|
||||
|
||||
Decrypt CBC !EtM, AES SHA384 !trunc, B-1, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA512_C:!MBEDTLS_SHA512_NO_SHA384
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA384:0:15:0
|
||||
|
||||
Decrypt CBC !EtM, AES SHA384 !trunc, B-1, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA512_C:!MBEDTLS_SHA512_NO_SHA384
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA384:0:15:1
|
||||
|
||||
Decrypt CBC !EtM, AES SHA384 trunc, B-1, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA512_C:!MBEDTLS_SHA512_NO_SHA384
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA384:1:5:0
|
||||
|
||||
Decrypt CBC !EtM, AES SHA384 trunc, B-1, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA512_C:!MBEDTLS_SHA512_NO_SHA384
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA384:1:5:1
|
||||
|
||||
Decrypt CBC !EtM, AES SHA384 !trunc, B, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA512_C:!MBEDTLS_SHA512_NO_SHA384
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA384:0:16:0
|
||||
|
||||
Decrypt CBC !EtM, AES SHA384 !trunc, B, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA512_C:!MBEDTLS_SHA512_NO_SHA384
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA384:0:16:1
|
||||
|
||||
Decrypt CBC !EtM, AES SHA384 trunc, B, minpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA512_C:!MBEDTLS_SHA512_NO_SHA384
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA384:1:6:0
|
||||
|
||||
Decrypt CBC !EtM, AES SHA384 trunc, B, maxpad
|
||||
depends_on:MBEDTLS_AES_C:MBEDTLS_SHA512_C:!MBEDTLS_SHA512_NO_SHA384
|
||||
ssl_decrypt_non_etm_cbc:MBEDTLS_CIPHER_AES_128_CBC:MBEDTLS_MD_SHA384:1:6:1
|
||||
|
||||
SSL TLS_PRF MBEDTLS_SSL_TLS_PRF_NONE
|
||||
ssl_tls_prf:MBEDTLS_SSL_TLS_PRF_NONE:"":"":"test tls_prf label":"":MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user