summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjsing <>2014-05-15 15:44:19 +0000
committerjsing <>2014-05-15 15:44:19 +0000
commit853c34111b882c438456e8d0bbe7945f3f9f91ee (patch)
tree7835dbc4d88f750abd0e17c2055a1d97ae148246
parentb88d7e72318b6af7739b0e0d5df6aa091234f44d (diff)
downloadopenbsd-853c34111b882c438456e8d0bbe7945f3f9f91ee.tar.gz
openbsd-853c34111b882c438456e8d0bbe7945f3f9f91ee.tar.bz2
openbsd-853c34111b882c438456e8d0bbe7945f3f9f91ee.zip
Use C99 initialisers for the AEAD struct.
-rw-r--r--src/lib/libcrypto/evp/e_chacha20poly1305.c18
-rw-r--r--src/lib/libssl/src/crypto/evp/e_chacha20poly1305.c18
2 files changed, 18 insertions, 18 deletions
diff --git a/src/lib/libcrypto/evp/e_chacha20poly1305.c b/src/lib/libcrypto/evp/e_chacha20poly1305.c
index 6e4a3f507a..75ff7f209c 100644
--- a/src/lib/libcrypto/evp/e_chacha20poly1305.c
+++ b/src/lib/libcrypto/evp/e_chacha20poly1305.c
@@ -238,15 +238,15 @@ aead_chacha20_poly1305_open(const EVP_AEAD_CTX *ctx, unsigned char *out,
238} 238}
239 239
240static const EVP_AEAD aead_chacha20_poly1305 = { 240static const EVP_AEAD aead_chacha20_poly1305 = {
241 32, /* key len */ 241 .key_len = 32,
242 CHACHA20_NONCE_LEN, /* nonce len */ 242 .nonce_len = CHACHA20_NONCE_LEN,
243 POLY1305_TAG_LEN, /* overhead */ 243 .overhead = POLY1305_TAG_LEN,
244 POLY1305_TAG_LEN, /* max tag length */ 244 .max_tag_len = POLY1305_TAG_LEN,
245 245
246 aead_chacha20_poly1305_init, 246 .init = aead_chacha20_poly1305_init,
247 aead_chacha20_poly1305_cleanup, 247 .cleanup = aead_chacha20_poly1305_cleanup,
248 aead_chacha20_poly1305_seal, 248 .seal = aead_chacha20_poly1305_seal,
249 aead_chacha20_poly1305_open, 249 .open = aead_chacha20_poly1305_open,
250}; 250};
251 251
252const EVP_AEAD * 252const EVP_AEAD *
diff --git a/src/lib/libssl/src/crypto/evp/e_chacha20poly1305.c b/src/lib/libssl/src/crypto/evp/e_chacha20poly1305.c
index 6e4a3f507a..75ff7f209c 100644
--- a/src/lib/libssl/src/crypto/evp/e_chacha20poly1305.c
+++ b/src/lib/libssl/src/crypto/evp/e_chacha20poly1305.c
@@ -238,15 +238,15 @@ aead_chacha20_poly1305_open(const EVP_AEAD_CTX *ctx, unsigned char *out,
238} 238}
239 239
240static const EVP_AEAD aead_chacha20_poly1305 = { 240static const EVP_AEAD aead_chacha20_poly1305 = {
241 32, /* key len */ 241 .key_len = 32,
242 CHACHA20_NONCE_LEN, /* nonce len */ 242 .nonce_len = CHACHA20_NONCE_LEN,
243 POLY1305_TAG_LEN, /* overhead */ 243 .overhead = POLY1305_TAG_LEN,
244 POLY1305_TAG_LEN, /* max tag length */ 244 .max_tag_len = POLY1305_TAG_LEN,
245 245
246 aead_chacha20_poly1305_init, 246 .init = aead_chacha20_poly1305_init,
247 aead_chacha20_poly1305_cleanup, 247 .cleanup = aead_chacha20_poly1305_cleanup,
248 aead_chacha20_poly1305_seal, 248 .seal = aead_chacha20_poly1305_seal,
249 aead_chacha20_poly1305_open, 249 .open = aead_chacha20_poly1305_open,
250}; 250};
251 251
252const EVP_AEAD * 252const EVP_AEAD *