mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
remove restriction on key wrap type with callback
This commit is contained in:
@ -9036,11 +9036,18 @@ static int wc_PKCS7_DecryptKari(PKCS7* pkcs7, byte* in, word32 inSz,
|
|||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
|
WOLFSSL_MSG("AES key wrap algorithm unsupported");
|
||||||
|
if (pkcs7->wrapCEKCb) {
|
||||||
|
WOLFSSL_MSG("Direction not set!");
|
||||||
|
break; /* if unwrapping callback is set then do not
|
||||||
|
* force restriction of supported wrap
|
||||||
|
* algorithms */
|
||||||
|
}
|
||||||
|
|
||||||
wc_PKCS7_KariFree(kari);
|
wc_PKCS7_KariFree(kari);
|
||||||
#ifdef WOLFSSL_SMALL_STACK
|
#ifdef WOLFSSL_SMALL_STACK
|
||||||
XFREE(encryptedKey, pkcs7->heap, DYNAMIC_TYPE_PKCS7);
|
XFREE(encryptedKey, pkcs7->heap, DYNAMIC_TYPE_PKCS7);
|
||||||
#endif
|
#endif
|
||||||
WOLFSSL_MSG("AES key wrap algorithm unsupported");
|
|
||||||
return BAD_KEYWRAP_ALG_E;
|
return BAD_KEYWRAP_ALG_E;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user