diff options
author | jsing <> | 2014-05-15 15:09:01 +0000 |
---|---|---|
committer | jsing <> | 2014-05-15 15:09:01 +0000 |
commit | fec12ac838b5428d9c1c0d074de2cfcfc2d60f6a (patch) | |
tree | f62e7b6e526d711ca1c6f1289ac45a6f4150d921 /src/lib/libcrypto/evp/evp.h | |
parent | b115738274236129c97a787d577da5cbff4c828e (diff) | |
download | openbsd-fec12ac838b5428d9c1c0d074de2cfcfc2d60f6a.tar.gz openbsd-fec12ac838b5428d9c1c0d074de2cfcfc2d60f6a.tar.bz2 openbsd-fec12ac838b5428d9c1c0d074de2cfcfc2d60f6a.zip |
Add a ChaCha20-Poly1305 AEAD EVP implementation to libcrypto, from Adam
Langley's Chromium OpenSSL patches.
ok miod@
Diffstat (limited to 'src/lib/libcrypto/evp/evp.h')
-rw-r--r-- | src/lib/libcrypto/evp/evp.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h index f8395fbe7b..437e36194f 100644 --- a/src/lib/libcrypto/evp/evp.h +++ b/src/lib/libcrypto/evp/evp.h | |||
@@ -1222,6 +1222,11 @@ const EVP_AEAD *EVP_aead_aes_128_gcm(void); | |||
1222 | const EVP_AEAD *EVP_aead_aes_256_gcm(void); | 1222 | const EVP_AEAD *EVP_aead_aes_256_gcm(void); |
1223 | #endif | 1223 | #endif |
1224 | 1224 | ||
1225 | #if !defined(OPENSSL_NO_CHACHA) && !defined(OPENSSL_NO_POLY1305) | ||
1226 | /* EVP_aead_chacha20_poly1305 is ChaCha20 with a Poly1305 authenticator. */ | ||
1227 | const EVP_AEAD *EVP_aead_chacha20_poly1305(void); | ||
1228 | #endif | ||
1229 | |||
1225 | /* EVP_AEAD_key_length returns the length of the keys used. */ | 1230 | /* EVP_AEAD_key_length returns the length of the keys used. */ |
1226 | size_t EVP_AEAD_key_length(const EVP_AEAD *aead); | 1231 | size_t EVP_AEAD_key_length(const EVP_AEAD *aead); |
1227 | 1232 | ||
@@ -1323,6 +1328,9 @@ void ERR_load_EVP_strings(void); | |||
1323 | #define EVP_F_AEAD_AES_GCM_INIT 187 | 1328 | #define EVP_F_AEAD_AES_GCM_INIT 187 |
1324 | #define EVP_F_AEAD_AES_GCM_OPEN 188 | 1329 | #define EVP_F_AEAD_AES_GCM_OPEN 188 |
1325 | #define EVP_F_AEAD_AES_GCM_SEAL 189 | 1330 | #define EVP_F_AEAD_AES_GCM_SEAL 189 |
1331 | #define EVP_F_AEAD_CHACHA20_POLY1305_INIT 192 | ||
1332 | #define EVP_F_AEAD_CHACHA20_POLY1305_OPEN 193 | ||
1333 | #define EVP_F_AEAD_CHACHA20_POLY1305_SEAL 194 | ||
1326 | #define EVP_F_AEAD_CTX_OPEN 185 | 1334 | #define EVP_F_AEAD_CTX_OPEN 185 |
1327 | #define EVP_F_AEAD_CTX_SEAL 186 | 1335 | #define EVP_F_AEAD_CTX_SEAL 186 |
1328 | #define EVP_F_AESNI_INIT_KEY 165 | 1336 | #define EVP_F_AESNI_INIT_KEY 165 |