diff options
author | jsing <> | 2014-05-15 15:44:19 +0000 |
---|---|---|
committer | jsing <> | 2014-05-15 15:44:19 +0000 |
commit | 853c34111b882c438456e8d0bbe7945f3f9f91ee (patch) | |
tree | 7835dbc4d88f750abd0e17c2055a1d97ae148246 | |
parent | b88d7e72318b6af7739b0e0d5df6aa091234f44d (diff) | |
download | openbsd-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.c | 18 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/evp/e_chacha20poly1305.c | 18 |
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 | ||
240 | static const EVP_AEAD aead_chacha20_poly1305 = { | 240 | static 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 | ||
252 | const EVP_AEAD * | 252 | const 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 | ||
240 | static const EVP_AEAD aead_chacha20_poly1305 = { | 240 | static 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 | ||
252 | const EVP_AEAD * | 252 | const EVP_AEAD * |