mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
crypto: update aes algorithm process
(1)update iv in each encryption process (2)support aes-ofb/aes-cfb128/aes-cfb8 Signed-off-by: makejian <makejian@xiaomi.com>
This commit is contained in:
+13
-10
@@ -111,16 +111,19 @@
|
||||
#define CRYPTO_AES_192_GMAC 18
|
||||
#define CRYPTO_AES_256_GMAC 19
|
||||
#define CRYPTO_AES_GMAC 20
|
||||
#define CRYPTO_CHACHA20_POLY1305 21
|
||||
#define CRYPTO_CHACHA20_POLY1305_MAC 22
|
||||
#define CRYPTO_MD5 23
|
||||
#define CRYPTO_SHA1 24
|
||||
#define CRYPTO_SHA2_224 25
|
||||
#define CRYPTO_SHA2_256 26
|
||||
#define CRYPTO_SHA2_384 27
|
||||
#define CRYPTO_SHA2_512 28
|
||||
#define CRYPTO_ESN 29 /* Support for Extended Sequence Numbers */
|
||||
#define CRYPTO_ALGORITHM_MAX 29 /* Keep updated */
|
||||
#define CRYPTO_AES_OFB 21
|
||||
#define CRYPTO_AES_CFB_8 22
|
||||
#define CRYPTO_AES_CFB_128 23
|
||||
#define CRYPTO_CHACHA20_POLY1305 24
|
||||
#define CRYPTO_CHACHA20_POLY1305_MAC 25
|
||||
#define CRYPTO_MD5 26
|
||||
#define CRYPTO_SHA1 27
|
||||
#define CRYPTO_SHA2_224 28
|
||||
#define CRYPTO_SHA2_256 29
|
||||
#define CRYPTO_SHA2_384 30
|
||||
#define CRYPTO_SHA2_512 31
|
||||
#define CRYPTO_ESN 32 /* Support for Extended Sequence Numbers */
|
||||
#define CRYPTO_ALGORITHM_MAX 32 /* Keep updated */
|
||||
|
||||
/* Algorithm flags */
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
#define AESCTR_NONCESIZE 4
|
||||
#define AESCTR_IVSIZE 8
|
||||
#define AESCTR_BLOCKSIZE 16
|
||||
#define AESOFB_IVSIZE 16
|
||||
|
||||
#define AES_XTS_BLOCKSIZE 16
|
||||
#define AES_XTS_IVSIZE 8
|
||||
@@ -103,6 +104,9 @@ extern const struct enc_xform enc_xform_aes_ctr;
|
||||
extern const struct enc_xform enc_xform_aes_gcm;
|
||||
extern const struct enc_xform enc_xform_aes_gmac;
|
||||
extern const struct enc_xform enc_xform_aes_xts;
|
||||
extern const struct enc_xform enc_xform_aes_ofb;
|
||||
extern const struct enc_xform enc_xform_aes_cfb_8;
|
||||
extern const struct enc_xform enc_xform_aes_cfb_128;
|
||||
extern const struct enc_xform enc_xform_chacha20_poly1305;
|
||||
extern const struct enc_xform enc_xform_null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user