You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am trying to parse Der format PKCS7 certificate using mbedtls_pkcs7_parse_der function. but parse fails at pkcs7_get_signed_data and returns " mbedtls_pkcs7_parse_der_ret: -5560" .
On further debugging it seems that the error pops from pkcs7_get_digest_algorithm_set where mbedtls_asn1_get_alg_null fails and returns MBEDTLS_ERR_ASN1_OUT_OF_DATA.
The same PKCS7 certificate is getting successfully parsed using OpenSSL and WolfSSL.
Question
Hi,
I am trying to parse Der format PKCS7 certificate using mbedtls_pkcs7_parse_der function. but parse fails at pkcs7_get_signed_data and returns " mbedtls_pkcs7_parse_der_ret: -5560" .
On further debugging it seems that the error pops from pkcs7_get_digest_algorithm_set where mbedtls_asn1_get_alg_null fails and returns MBEDTLS_ERR_ASN1_OUT_OF_DATA.
The same PKCS7 certificate is getting successfully parsed using OpenSSL and WolfSSL.
Attached the source
The text was updated successfully, but these errors were encountered: