pkcs7/test: Add test for parsing a disabled algorithm
If the digest algorithm is not compiled into Mbedtls, then any pkcs7 structure which uses this algorithm should fail with MBEDTLS_ERR_PKCS7_INVALID_ALG. Add test for this case. Signed-off-by: Nick Child <nick.child@ibm.com>
This commit is contained in:
parent
6291cc2444
commit
50886c25f3
1 changed files with 5 additions and 1 deletions
|
@ -14,10 +14,14 @@ PKCS7 Signed Data Parse Fail with multiple certs #4
|
|||
depends_on:MBEDTLS_SHA256_C:MBEDTLS_RSA_C
|
||||
pkcs7_parse:"data_files/pkcs7_data_multiple_certs_signed.der":MBEDTLS_ERR_PKCS7_FEATURE_UNAVAILABLE
|
||||
|
||||
PKCS7 Signed Data Parse Fail with corrupted cert #5
|
||||
PKCS7 Signed Data Parse Fail with corrupted cert #5.0
|
||||
depends_on:MBEDTLS_SHA256_C:MBEDTLS_RSA_C
|
||||
pkcs7_parse:"data_files/pkcs7_data_signed_badcert.der":MBEDTLS_ERR_PKCS7_INVALID_CERT
|
||||
|
||||
PKCS7 Signed Data Parse Fail with disabled alg #5.1
|
||||
depends_on:MBEDTLS_RSA_C:!MBEDTLS_SHA512_C
|
||||
pkcs7_parse:"data_files/pkcs7_data_cert_signed_sha512.der":MBEDTLS_ERR_PKCS7_INVALID_ALG
|
||||
|
||||
PKCS7 Signed Data Parse Fail with corrupted signer info #6
|
||||
depends_on:MBEDTLS_SHA256_C:MBEDTLS_RSA_C
|
||||
pkcs7_parse:"data_files/pkcs7_data_signed_badsigner.der":MBEDTLS_ERROR_ADD(MBEDTLS_ERR_PKCS7_INVALID_SIGNER_INFO,MBEDTLS_ERR_ASN1_UNEXPECTED_TAG)
|
||||
|
|
Loading…
Reference in a new issue