crypto: add chacha20-poly1305 algo
Type: feature Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> Change-Id: I3697cf7fab7abb7c3d2f61ef326c9116bc1eed66
This commit is contained in:

committed by
Damjan Marion

parent
6e334e3e77
commit
61f49aa38e
@ -35,7 +35,8 @@
|
||||
#define foreach_crypto_aead_alg \
|
||||
_(AES_128_GCM, "aes-128-gcm", 16) \
|
||||
_(AES_192_GCM, "aes-192-gcm", 24) \
|
||||
_(AES_256_GCM, "aes-256-gcm", 32)
|
||||
_(AES_256_GCM, "aes-256-gcm", 32) \
|
||||
_(CHACHA20_POLY1305, "chacha20-poly1305", 32)
|
||||
|
||||
#define foreach_crypto_hmac_alg \
|
||||
_(MD5, "md5") \
|
||||
@ -78,7 +79,9 @@ typedef enum
|
||||
_(AES_192_GCM, "aes-192-gcm-aad8", 24, 16, 8) \
|
||||
_(AES_192_GCM, "aes-192-gcm-aad12", 24, 16, 12) \
|
||||
_(AES_256_GCM, "aes-256-gcm-aad8", 32, 16, 8) \
|
||||
_(AES_256_GCM, "aes-256-gcm-aad12", 32, 16, 12)
|
||||
_(AES_256_GCM, "aes-256-gcm-aad12", 32, 16, 12) \
|
||||
_(CHACHA20_POLY1305, "chacha20-poly1305-aad8", 32, 16, 8) \
|
||||
_(CHACHA20_POLY1305, "chacha20-poly1305-aad12", 32, 16, 12)
|
||||
|
||||
/* CRYPTO_ID, INTEG_ID, PRETTY_NAME, KEY_LENGTH_IN_BYTES, DIGEST_LEN */
|
||||
#define foreach_crypto_link_async_alg \
|
||||
|
Reference in New Issue
Block a user