mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +08:00
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:
committed by
Alan Carvalho de Assis
parent
7c763f67a6
commit
9769816385
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user