wolfssl icon indicating copy to clipboard operation
wolfssl copied to clipboard

Add pkcs12 tests for wolfcrypt

Open ColtonWilley opened this issue 1 year ago • 1 comments

Existing PKCS12 tests in test.c are really for the PKCS12 password based KDF functionality in pwdbased.c, so those have been renamed pcks12_kdf tests and a new function with the same symbol name now tests the APIs in pkcs12.h. Function wc_PKCS12_parse() yields an allocated WC_DerCertList structure, so I added a new publicly exposed associated free function, the existing wc_FreeCertList() is local and does not follow naming conventions, so I added a public wrapper for it. Stack sizes for certs are no larger than the ones used in the existing kyber tests.

ColtonWilley avatar May 03 '24 21:05 ColtonWilley

Test with WOLFSSL_NO_MALLOC fails:

PKCS12   test failed!
 error L=24872

dgarske avatar May 03 '24 21:05 dgarske