mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
Merge pull request #4146 from SparkiDev/pkcs11_dec_final
PKCS #11: Use C_Decrypt instead of C_DecryptUpdate
This commit is contained in:
@ -3266,12 +3266,12 @@ static int Pkcs11AesCbcDecrypt(Pkcs11Session* session, wc_CryptoInfo* info)
|
|||||||
}
|
}
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
outLen = info->cipher.aescbc.sz;
|
outLen = info->cipher.aescbc.sz;
|
||||||
rv = session->func->C_DecryptUpdate(session->handle,
|
rv = session->func->C_Decrypt(session->handle,
|
||||||
(CK_BYTE_PTR)info->cipher.aescbc.in,
|
(CK_BYTE_PTR)info->cipher.aescbc.in,
|
||||||
info->cipher.aescbc.sz,
|
info->cipher.aescbc.sz,
|
||||||
info->cipher.aescbc.out,
|
info->cipher.aescbc.out,
|
||||||
&outLen);
|
&outLen);
|
||||||
PKCS11_RV("C_DecryptUpdate", rv);
|
PKCS11_RV("C_Decrypt", rv);
|
||||||
if (rv != CKR_OK) {
|
if (rv != CKR_OK) {
|
||||||
ret = WC_HW_E;
|
ret = WC_HW_E;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user