diff options
author | Benoît Ganne <bganne@cisco.com> | 2021-01-22 18:09:40 +0100 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-03-04 11:02:09 +0000 |
commit | 40ee2003bc79baca594dc71f1cd0b7540a774c85 (patch) | |
tree | 4c33f53927f759a35125af3e8b8751d6b9d421fd | |
parent | 1334761e1e558b2107e62ffe60ce81bd2ce5780c (diff) |
crypto: add support for aes-ctr+sha-1 chains
Type: feature
Change-Id: I9d4f90bc701d2b9b903a018f8d27cec5e129d7be
Signed-off-by: Benoît Ganne <bganne@cisco.com>
-rw-r--r-- | src/vnet/crypto/crypto.h | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/src/vnet/crypto/crypto.h b/src/vnet/crypto/crypto.h index eeb120400a8..1df6e7f6651 100644 --- a/src/vnet/crypto/crypto.h +++ b/src/vnet/crypto/crypto.h @@ -84,22 +84,25 @@ typedef enum _(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 \ - _ (AES_128_CBC, SHA1, "aes-128-cbc-hmac-sha-1", 16, 12) \ - _ (AES_192_CBC, SHA1, "aes-192-cbc-hmac-sha-1", 24, 12) \ - _ (AES_256_CBC, SHA1, "aes-256-cbc-hmac-sha-1", 32, 12) \ - _ (AES_128_CBC, SHA224, "aes-128-cbc-hmac-sha-224", 16, 14) \ - _ (AES_192_CBC, SHA224, "aes-192-cbc-hmac-sha-224", 24, 14) \ - _ (AES_256_CBC, SHA224, "aes-256-cbc-hmac-sha-224", 32, 14) \ - _ (AES_128_CBC, SHA256, "aes-128-cbc-hmac-sha-256", 16, 16) \ - _ (AES_192_CBC, SHA256, "aes-192-cbc-hmac-sha-256", 24, 16) \ - _ (AES_256_CBC, SHA256, "aes-256-cbc-hmac-sha-256", 32, 16) \ - _ (AES_128_CBC, SHA384, "aes-128-cbc-hmac-sha-384", 16, 24) \ - _ (AES_192_CBC, SHA384, "aes-192-cbc-hmac-sha-384", 24, 24) \ - _ (AES_256_CBC, SHA384, "aes-256-cbc-hmac-sha-384", 32, 24) \ - _ (AES_128_CBC, SHA512, "aes-128-cbc-hmac-sha-512", 16, 32) \ - _ (AES_192_CBC, SHA512, "aes-192-cbc-hmac-sha-512", 24, 32) \ - _ (AES_256_CBC, SHA512, "aes-256-cbc-hmac-sha-512", 32, 32) +#define foreach_crypto_link_async_alg \ + _ (AES_128_CBC, SHA1, "aes-128-cbc-hmac-sha-1", 16, 12) \ + _ (AES_192_CBC, SHA1, "aes-192-cbc-hmac-sha-1", 24, 12) \ + _ (AES_256_CBC, SHA1, "aes-256-cbc-hmac-sha-1", 32, 12) \ + _ (AES_128_CBC, SHA224, "aes-128-cbc-hmac-sha-224", 16, 14) \ + _ (AES_192_CBC, SHA224, "aes-192-cbc-hmac-sha-224", 24, 14) \ + _ (AES_256_CBC, SHA224, "aes-256-cbc-hmac-sha-224", 32, 14) \ + _ (AES_128_CBC, SHA256, "aes-128-cbc-hmac-sha-256", 16, 16) \ + _ (AES_192_CBC, SHA256, "aes-192-cbc-hmac-sha-256", 24, 16) \ + _ (AES_256_CBC, SHA256, "aes-256-cbc-hmac-sha-256", 32, 16) \ + _ (AES_128_CBC, SHA384, "aes-128-cbc-hmac-sha-384", 16, 24) \ + _ (AES_192_CBC, SHA384, "aes-192-cbc-hmac-sha-384", 24, 24) \ + _ (AES_256_CBC, SHA384, "aes-256-cbc-hmac-sha-384", 32, 24) \ + _ (AES_128_CBC, SHA512, "aes-128-cbc-hmac-sha-512", 16, 32) \ + _ (AES_192_CBC, SHA512, "aes-192-cbc-hmac-sha-512", 24, 32) \ + _ (AES_256_CBC, SHA512, "aes-256-cbc-hmac-sha-512", 32, 32) \ + _ (AES_128_CTR, SHA1, "aes-128-ctr-hmac-sha-1", 16, 12) \ + _ (AES_192_CTR, SHA1, "aes-192-ctr-hmac-sha-1", 24, 12) \ + _ (AES_256_CTR, SHA1, "aes-256-ctr-hmac-sha-1", 32, 12) #define foreach_crypto_async_op_type \ _(ENCRYPT, "async-encrypt") \ |