summaryrefslogtreecommitdiff
path: root/lib/nettle
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2015-04-07 10:31:23 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2015-04-07 10:41:15 +0200
commitf1ff2ffbc8fb5fa9c89b09519e3951fab55d7af1 (patch)
tree638c4b1805dc9da467b2433c4642efeaf15a2ea2 /lib/nettle
parentd143532e37a7750688fe74c84159d7caa501e16c (diff)
downloadgnutls-f1ff2ffbc8fb5fa9c89b09519e3951fab55d7af1.tar.gz
Added CCM-8 ciphersuites
Diffstat (limited to 'lib/nettle')
-rw-r--r--lib/nettle/cipher.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/nettle/cipher.c b/lib/nettle/cipher.c
index c9bf70573b..59e70dda32 100644
--- a/lib/nettle/cipher.c
+++ b/lib/nettle/cipher.c
@@ -235,6 +235,20 @@ static const struct nettle_cipher_st builtin_ciphers[] = {
.fips_allowed = 1
},
+ { .algo = GNUTLS_CIPHER_AES_128_CCM_8,
+ .block_size = AES_BLOCK_SIZE,
+ .key_size = AES128_KEY_SIZE,
+ .encrypt_block = (nettle_cipher_func*)aes128_encrypt,
+ .decrypt_block = (nettle_cipher_func*)aes128_decrypt,
+
+ .ctx_size = sizeof(struct aes128_ctx),
+ .aead_encrypt = _ccm_encrypt,
+ .aead_decrypt = _ccm_decrypt,
+ .set_encrypt_key = (nettle_set_key_func*)aes128_set_encrypt_key,
+ .set_decrypt_key = (nettle_set_key_func*)aes128_set_encrypt_key,
+
+ .fips_allowed = 1
+ },
{ .algo = GNUTLS_CIPHER_AES_256_CCM,
.block_size = AES_BLOCK_SIZE,
.key_size = AES256_KEY_SIZE,
@@ -249,6 +263,20 @@ static const struct nettle_cipher_st builtin_ciphers[] = {
.fips_allowed = 1
},
+ { .algo = GNUTLS_CIPHER_AES_256_CCM_8,
+ .block_size = AES_BLOCK_SIZE,
+ .key_size = AES256_KEY_SIZE,
+ .encrypt_block = (nettle_cipher_func*)aes256_encrypt,
+ .decrypt_block = (nettle_cipher_func*)aes256_decrypt,
+
+ .ctx_size = sizeof(struct aes256_ctx),
+ .aead_encrypt = _ccm_encrypt,
+ .aead_decrypt = _ccm_decrypt,
+ .set_encrypt_key = (nettle_set_key_func*)aes256_set_encrypt_key,
+ .set_decrypt_key = (nettle_set_key_func*)aes256_set_encrypt_key,
+
+ .fips_allowed = 1
+ },
{ .algo = GNUTLS_CIPHER_CAMELLIA_128_GCM,
.block_size = CAMELLIA_BLOCK_SIZE,
.key_size = CAMELLIA128_KEY_SIZE,