aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/crypto
diff options
context:
space:
mode:
authorArtem Glazychev <artem.glazychev@xored.com>2020-08-31 15:37:39 +0700
committerDamjan Marion <damarion@cisco.com>2020-09-01 14:07:39 +0200
commit61f49aa38e02d2f78e7033b5c97e6a90ebdecd0f (patch)
tree247855c472c7b38924e076d9f4fad61841b852de /src/vnet/crypto
parent6e334e3e77bb156a9317a37500077a218a04f7a3 (diff)
crypto: add chacha20-poly1305 algo
Type: feature Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> Change-Id: I3697cf7fab7abb7c3d2f61ef326c9116bc1eed66
Diffstat (limited to 'src/vnet/crypto')
-rw-r--r--src/vnet/crypto/crypto.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/vnet/crypto/crypto.h b/src/vnet/crypto/crypto.h
index b0a83e08be3..777923a8be7 100644
--- a/src/vnet/crypto/crypto.h
+++ b/src/vnet/crypto/crypto.h
@@ -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 \