diff options
Diffstat (limited to 'lib/algorithms/ciphers.c')
-rw-r--r-- | lib/algorithms/ciphers.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/algorithms/ciphers.c b/lib/algorithms/ciphers.c index aab3708128..fd47c13b66 100644 --- a/lib/algorithms/ciphers.c +++ b/lib/algorithms/ciphers.c @@ -86,7 +86,7 @@ static const cipher_entry_st algorithms[] = { .implicit_iv = 4, .explicit_iv = 8, .cipher_iv = 12, - .only_aead = 1, + .flags = GNUTLS_CIPHER_FLAG_ONLY_AEAD, .tagsize = 16}, { .name = "AES-256-CCM", .id = GNUTLS_CIPHER_AES_256_CCM, @@ -96,7 +96,7 @@ static const cipher_entry_st algorithms[] = { .implicit_iv = 4, .explicit_iv = 8, .cipher_iv = 12, - .only_aead = 1, + .flags = GNUTLS_CIPHER_FLAG_ONLY_AEAD, .tagsize = 16}, { .name = "AES-128-CCM-8", .id = GNUTLS_CIPHER_AES_128_CCM_8, @@ -106,7 +106,7 @@ static const cipher_entry_st algorithms[] = { .implicit_iv = 4, .explicit_iv = 8, .cipher_iv = 12, - .only_aead = 1, + .flags = GNUTLS_CIPHER_FLAG_ONLY_AEAD, .tagsize = 8}, { .name = "AES-256-CCM-8", .id = GNUTLS_CIPHER_AES_256_CCM_8, @@ -116,7 +116,7 @@ static const cipher_entry_st algorithms[] = { .implicit_iv = 4, .explicit_iv = 8, .cipher_iv = 12, - .only_aead = 1, + .flags = GNUTLS_CIPHER_FLAG_ONLY_AEAD, .tagsize = 8}, { .name = "ARCFOUR-128", .id = GNUTLS_CIPHER_ARCFOUR_128, @@ -164,10 +164,9 @@ static const cipher_entry_st algorithms[] = { .type = CIPHER_AEAD, .implicit_iv = 12, .explicit_iv = 0, - .xor_nonce = 1, - .cipher_iv = 12, /* in chacha20 we don't need a rekey after 2^24 messages */ - .no_rekey = 1, + .flags = GNUTLS_CIPHER_FLAG_XOR_NONCE | GNUTLS_CIPHER_FLAG_NO_REKEY, + .cipher_iv = 12, .tagsize = 16 }, { .name = "CAMELLIA-128-GCM", |