mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 13:55:43 +01:00
17351eb7f2
For all algorithms, validate feature test macros (PSA_ALG_IS_xxx). For hash algorithms, validate the exact hash size, and validate xxx_GET_HASH macros on dependent algorithms. For MAC algorithms, validate the MAC size. For AEAD algorithms, validate the tag size. There is a separate test case for each HMAC algorithm, which is necessary because each has its own MAC size. For other hash-dependent algorithms, there is no interesting variation to test here, so only one hash gets tested.
184 lines
5.4 KiB
Plaintext
184 lines
5.4 KiB
Plaintext
Hash: MD2
|
|
hash_algorithm:PSA_ALG_MD2:16
|
|
|
|
Hash: MD4
|
|
hash_algorithm:PSA_ALG_MD4:16
|
|
|
|
Hash: MD5
|
|
hash_algorithm:PSA_ALG_MD5:16
|
|
|
|
Hash: RIPEMD160
|
|
hash_algorithm:PSA_ALG_RIPEMD160:20
|
|
|
|
Hash: SHA-1
|
|
hash_algorithm:PSA_ALG_SHA_1:20
|
|
|
|
Hash: SHA-2 SHA-224
|
|
hash_algorithm:PSA_ALG_SHA_224:28
|
|
|
|
Hash: SHA-2 SHA-256
|
|
hash_algorithm:PSA_ALG_SHA_256:32
|
|
|
|
Hash: SHA-2 SHA-384
|
|
hash_algorithm:PSA_ALG_SHA_384:48
|
|
|
|
Hash: SHA-2 SHA-512
|
|
hash_algorithm:PSA_ALG_SHA_512:64
|
|
|
|
Hash: SHA-2 SHA-512/224
|
|
hash_algorithm:PSA_ALG_SHA_512_224:28
|
|
|
|
Hash: SHA-2 SHA-512/256
|
|
hash_algorithm:PSA_ALG_SHA_512_256:32
|
|
|
|
Hash: SHA-3 SHA3-224
|
|
hash_algorithm:PSA_ALG_SHA3_224:28
|
|
|
|
Hash: SHA-3 SHA3-256
|
|
hash_algorithm:PSA_ALG_SHA3_256:32
|
|
|
|
Hash: SHA-3 SHA3-384
|
|
hash_algorithm:PSA_ALG_SHA3_384:48
|
|
|
|
Hash: SHA-3 SHA3-512
|
|
hash_algorithm:PSA_ALG_SHA3_512:64
|
|
|
|
MAC: HMAC-MD2
|
|
mac_algorithm:PSA_ALG_HMAC( PSA_ALG_MD2 ):ALG_IS_HMAC:16:PSA_KEY_TYPE_HMAC:128
|
|
|
|
MAC: HMAC-MD4
|
|
mac_algorithm:PSA_ALG_HMAC( PSA_ALG_MD4 ):ALG_IS_HMAC:16:PSA_KEY_TYPE_HMAC:128
|
|
|
|
MAC: HMAC-MD5
|
|
mac_algorithm:PSA_ALG_HMAC( PSA_ALG_MD5 ):ALG_IS_HMAC:16:PSA_KEY_TYPE_HMAC:128
|
|
|
|
MAC: HMAC-RIPEMD160
|
|
mac_algorithm:PSA_ALG_HMAC( PSA_ALG_RIPEMD160 ):ALG_IS_HMAC:20:PSA_KEY_TYPE_HMAC:160
|
|
|
|
MAC: HMAC-SHA-1
|
|
mac_algorithm:PSA_ALG_HMAC( PSA_ALG_SHA_1 ):ALG_IS_HMAC:20:PSA_KEY_TYPE_HMAC:160
|
|
|
|
MAC: HMAC-SHA-224
|
|
mac_algorithm:PSA_ALG_HMAC( PSA_ALG_SHA_224 ):ALG_IS_HMAC:28:PSA_KEY_TYPE_HMAC:224
|
|
|
|
MAC: HMAC-SHA-256
|
|
mac_algorithm:PSA_ALG_HMAC( PSA_ALG_SHA_256 ):ALG_IS_HMAC:32:PSA_KEY_TYPE_HMAC:256
|
|
|
|
MAC: HMAC-SHA-384
|
|
mac_algorithm:PSA_ALG_HMAC( PSA_ALG_SHA_384 ):ALG_IS_HMAC:48:PSA_KEY_TYPE_HMAC:384
|
|
|
|
MAC: HMAC-SHA-512
|
|
mac_algorithm:PSA_ALG_HMAC( PSA_ALG_SHA_512 ):ALG_IS_HMAC:64:PSA_KEY_TYPE_HMAC:512
|
|
|
|
MAC: HMAC-SHA-512/224
|
|
mac_algorithm:PSA_ALG_HMAC( PSA_ALG_SHA_512_224 ):ALG_IS_HMAC:28:PSA_KEY_TYPE_HMAC:224
|
|
|
|
MAC: HMAC-SHA-512/256
|
|
mac_algorithm:PSA_ALG_HMAC( PSA_ALG_SHA_512_256 ):ALG_IS_HMAC:32:PSA_KEY_TYPE_HMAC:256
|
|
|
|
MAC: HMAC-SHA3-224
|
|
mac_algorithm:PSA_ALG_HMAC( PSA_ALG_SHA3_224 ):ALG_IS_HMAC:28:PSA_KEY_TYPE_HMAC:224
|
|
|
|
MAC: HMAC-SHA3-256
|
|
mac_algorithm:PSA_ALG_HMAC( PSA_ALG_SHA3_256 ):ALG_IS_HMAC:32:PSA_KEY_TYPE_HMAC:256
|
|
|
|
MAC: HMAC-SHA3-384
|
|
mac_algorithm:PSA_ALG_HMAC( PSA_ALG_SHA3_384 ):ALG_IS_HMAC:48:PSA_KEY_TYPE_HMAC:384
|
|
|
|
MAC: HMAC-SHA3-512
|
|
mac_algorithm:PSA_ALG_HMAC( PSA_ALG_SHA3_512 ):ALG_IS_HMAC:64:PSA_KEY_TYPE_HMAC:512
|
|
|
|
MAC: CBC_MAC-AES-128
|
|
mac_algorithm:PSA_ALG_CBC_MAC:ALG_IS_BLOCK_CIPHER_MAC:16:PSA_KEY_TYPE_AES:128
|
|
|
|
MAC: CBC_MAC-AES-192
|
|
mac_algorithm:PSA_ALG_CBC_MAC:ALG_IS_BLOCK_CIPHER_MAC:16:PSA_KEY_TYPE_AES:192
|
|
|
|
MAC: CBC_MAC-AES-256
|
|
mac_algorithm:PSA_ALG_CBC_MAC:ALG_IS_BLOCK_CIPHER_MAC:16:PSA_KEY_TYPE_AES:256
|
|
|
|
MAC: CBC_MAC-3DES
|
|
mac_algorithm:PSA_ALG_CBC_MAC:ALG_IS_BLOCK_CIPHER_MAC:8:PSA_KEY_TYPE_DES:192
|
|
|
|
MAC: CMAC-AES-128
|
|
mac_algorithm:PSA_ALG_CMAC:ALG_IS_BLOCK_CIPHER_MAC:16:PSA_KEY_TYPE_AES:128
|
|
|
|
MAC: CMAC-AES-192
|
|
mac_algorithm:PSA_ALG_CMAC:ALG_IS_BLOCK_CIPHER_MAC:16:PSA_KEY_TYPE_AES:192
|
|
|
|
MAC: CMAC-AES-256
|
|
mac_algorithm:PSA_ALG_CMAC:ALG_IS_BLOCK_CIPHER_MAC:16:PSA_KEY_TYPE_AES:256
|
|
|
|
MAC: CMAC-3DES
|
|
mac_algorithm:PSA_ALG_CMAC:ALG_IS_BLOCK_CIPHER_MAC:8:PSA_KEY_TYPE_DES:192
|
|
|
|
MAC: GMAC-AES-128
|
|
mac_algorithm:PSA_ALG_GMAC:ALG_IS_BLOCK_CIPHER_MAC:16:PSA_KEY_TYPE_AES:128
|
|
|
|
MAC: GMAC-AES-192
|
|
mac_algorithm:PSA_ALG_GMAC:ALG_IS_BLOCK_CIPHER_MAC:16:PSA_KEY_TYPE_AES:192
|
|
|
|
MAC: GMAC-AES-256
|
|
mac_algorithm:PSA_ALG_GMAC:ALG_IS_BLOCK_CIPHER_MAC:16:PSA_KEY_TYPE_AES:256
|
|
|
|
Cipher: ARC4
|
|
cipher_algorithm:PSA_ALG_ARC4:ALG_IS_STREAM_CIPHER
|
|
|
|
Cipher: CTR
|
|
cipher_algorithm:PSA_ALG_CTR:ALG_IS_STREAM_CIPHER
|
|
|
|
Cipher: CFB
|
|
cipher_algorithm:PSA_ALG_CFB:ALG_IS_STREAM_CIPHER
|
|
|
|
Cipher: OFB
|
|
cipher_algorithm:PSA_ALG_OFB:ALG_IS_STREAM_CIPHER
|
|
|
|
Cipher: CBC-nopad
|
|
cipher_algorithm:PSA_ALG_CBC_NO_PADDING:0
|
|
|
|
Cipher: CBC-PKCS#7
|
|
cipher_algorithm:PSA_ALG_CBC_PKCS7:0
|
|
|
|
Cipher: XTS
|
|
cipher_algorithm:PSA_ALG_XTS:0
|
|
|
|
AEAD: CCM
|
|
aead_algorithm:PSA_ALG_CCM:0:16
|
|
|
|
AEAD: GCM
|
|
aead_algorithm:PSA_ALG_GCM:0:16
|
|
|
|
Asymmetric signature: RSA PKCS#1 v1.5 raw
|
|
asymmetric_signature_algorithm:PSA_ALG_RSA_PKCS1V15_SIGN_RAW:ALG_IS_RSA_PKCS1V15_SIGN
|
|
|
|
Asymmetric signature: RSA PKCS#1 v1.5 SHA-256
|
|
asymmetric_signature_algorithm:PSA_ALG_RSA_PKCS1V15_SIGN( PSA_ALG_SHA_256 ):ALG_IS_RSA_PKCS1V15_SIGN
|
|
|
|
Asymmetric signature: RSA PSS SHA-256
|
|
asymmetric_signature_algorithm:PSA_ALG_RSA_PSS( PSA_ALG_SHA_256 ):ALG_IS_RSA_PSS
|
|
|
|
Asymmetric signature: SHA-256 + randomized DSA SHA-256 using SHA-256
|
|
asymmetric_signature_algorithm:PSA_ALG_DSA( PSA_ALG_SHA_256 ):ALG_IS_DSA | ALG_IS_RANDOMIZED_DSA
|
|
|
|
Asymmetric signature: SHA-256 + deterministic DSA using SHA-256
|
|
asymmetric_signature_algorithm:PSA_ALG_DETERMINISTIC_DSA( PSA_ALG_SHA_256 ):ALG_IS_DSA | ALG_IS_DETERMINISTIC_DSA | ALG_DSA_IS_DETERMINISTIC
|
|
|
|
Asymmetric signature: randomized ECDSA (no hashing)
|
|
asymmetric_signature_algorithm:PSA_ALG_ECDSA_ANY:ALG_IS_ECDSA | ALG_IS_RANDOMIZED_ECDSA
|
|
|
|
Asymmetric signature: SHA-256 + randomized ECDSA
|
|
asymmetric_signature_algorithm:PSA_ALG_ECDSA( PSA_ALG_SHA_256 ):ALG_IS_ECDSA | ALG_IS_RANDOMIZED_ECDSA
|
|
|
|
Asymmetric signature: SHA-256 + deterministic DSA using SHA-256
|
|
asymmetric_signature_algorithm:PSA_ALG_DETERMINISTIC_ECDSA( PSA_ALG_SHA_256 ):ALG_IS_ECDSA | ALG_IS_DETERMINISTIC_ECDSA | ALG_ECDSA_IS_DETERMINISTIC
|
|
|
|
Asymmetric encryption: RSA PKCS#1 v1.5
|
|
asymmetric_encryption_algorithm:PSA_ALG_RSA_PKCS1V15_CRYPT:0
|
|
|
|
Asymmetric encryption: RSA OAEP using SHA-256
|
|
asymmetric_encryption_algorithm:PSA_ALG_RSA_OAEP( PSA_ALG_SHA_256 ):ALG_IS_RSA_OAEP
|
|
|
|
Key derivation: HKDF using SHA-256
|
|
key_derivation_algorithm:PSA_ALG_HKDF( PSA_ALG_SHA_256 ):ALG_IS_HKDF
|
|
|