mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
Encrypt key requirements check
The file wc_encrypt.c offers a function named wc_CryptKey(), which requires PWDBASED and ASN. Added the check for ASN.
This commit is contained in:
@ -363,7 +363,7 @@ int wc_BufferKeyEncrypt(EncryptedInfo* info, byte* der, word32 derSz,
|
||||
#endif /* WOLFSSL_ENCRYPTED_KEYS */
|
||||
|
||||
|
||||
#ifndef NO_PWDBASED
|
||||
#if !defined(NO_PWDBASED) && !defined(NO_ASN)
|
||||
|
||||
#if defined(HAVE_PKCS8) || defined(HAVE_PKCS12)
|
||||
/* Decrypt/Encrypt input in place from parameters based on id
|
||||
|
Reference in New Issue
Block a user