diff options
author | dlg <> | 2019-01-22 00:59:21 +0000 |
---|---|---|
committer | dlg <> | 2019-01-22 00:59:21 +0000 |
commit | 314b0e719f69f4ef7811d81c9346e1b71bdef302 (patch) | |
tree | 87d28e1c4d3807293ec30dc5c24e43dccbe80302 /src/lib/libcrypto/evp/evp.h | |
parent | 6b5710cca200592904a2f0474264ab1e06d1d1dc (diff) | |
download | openbsd-314b0e719f69f4ef7811d81c9346e1b71bdef302.tar.gz openbsd-314b0e719f69f4ef7811d81c9346e1b71bdef302.tar.bz2 openbsd-314b0e719f69f4ef7811d81c9346e1b71bdef302.zip |
add support for xchacha20 and xchacha20-poly1305
xchacha is a chacha stream that allows for an extended nonce, which
in turn makes it feasible to use random nonces.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/evp/evp.h')
-rw-r--r-- | src/lib/libcrypto/evp/evp.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h index 35f2b3281b..0645303686 100644 --- a/src/lib/libcrypto/evp/evp.h +++ b/src/lib/libcrypto/evp/evp.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: evp.h,v 1.71 2019/01/19 01:24:18 tb Exp $ */ | 1 | /* $OpenBSD: evp.h,v 1.72 2019/01/22 00:59:21 dlg Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -1243,6 +1243,8 @@ const EVP_AEAD *EVP_aead_aes_256_gcm(void); | |||
1243 | #if !defined(OPENSSL_NO_CHACHA) && !defined(OPENSSL_NO_POLY1305) | 1243 | #if !defined(OPENSSL_NO_CHACHA) && !defined(OPENSSL_NO_POLY1305) |
1244 | /* EVP_aead_chacha20_poly1305 is ChaCha20 with a Poly1305 authenticator. */ | 1244 | /* EVP_aead_chacha20_poly1305 is ChaCha20 with a Poly1305 authenticator. */ |
1245 | const EVP_AEAD *EVP_aead_chacha20_poly1305(void); | 1245 | const EVP_AEAD *EVP_aead_chacha20_poly1305(void); |
1246 | /* EVP_aead_xchacha20_poly1305 is XChaCha20 with a Poly1305 authenticator. */ | ||
1247 | const EVP_AEAD *EVP_aead_xchacha20_poly1305(void); | ||
1246 | #endif | 1248 | #endif |
1247 | 1249 | ||
1248 | /* EVP_AEAD_key_length returns the length of the keys used. */ | 1250 | /* EVP_AEAD_key_length returns the length of the keys used. */ |