crypto: fix wrong implementation in crypto module

(1) RSA_PKCS15_VERIFY Misspell
(2) if iv not provided during decryption, iv should get from data.
It was not discovered before because all symmetric decryption comes with iv.
Signed-off-by: makejian <makejian@xiaomi.com>
This commit is contained in:
makejian
2023-11-23 11:09:34 +08:00
committed by Alan Carvalho de Assis
parent 7c763f67a6
commit 9769816385
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -248,7 +248,7 @@ struct crypt_kop
#define CRK_DSA_SIGN 2
#define CRK_DSA_VERIFY 3
#define CRK_DH_COMPUTE_KEY 4
#define CRK_RSA_PCKS15_VERIFY 5
#define CRK_RSA_PKCS15_VERIFY 5
#define CRK_ALGORITHM_MAX 5 /* Keep updated */
#define CRF_MOD_EXP (1 << CRK_MOD_EXP)
@@ -256,7 +256,7 @@ struct crypt_kop
#define CRF_DSA_SIGN (1 << CRK_DSA_SIGN)
#define CRF_DSA_VERIFY (1 << CRK_DSA_VERIFY)
#define CRF_DH_COMPUTE_KEY (1 << CRK_DH_COMPUTE_KEY)
#define CRF_RSA_PCKS15_VERIFY (1 << CRK_RSA_PCKS15_VERIFY)
#define CRF_RSA_PKCS15_VERIFY (1 << CRK_RSA_PKCS15_VERIFY)
struct cryptkop
{