update PKCS7/CMS EnvelopedData KEKRI example to use AES256 key wrap

pull/113/head
Chris Conlon 2018-10-25 14:32:53 -06:00
parent 4e973a2ebb
commit 08c7273869
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ static int envelopedData_encrypt(byte* out, word32 outSz)
pkcs7->ukmSz = 0;
/* add recipient (KEKRI type) */
ret = wc_PKCS7_AddRecipient_KEKRI(pkcs7, AES128_WRAP, aes256Key,
ret = wc_PKCS7_AddRecipient_KEKRI(pkcs7, AES256_WRAP, aes256Key,
sizeof(aes256Key), keyId, sizeof(keyId),
NULL, NULL, 0, NULL, 0, 0);
if (ret < 0) {