diff options
Diffstat (limited to 'src/lib/libcrypto/evp/evp.h')
-rw-r--r-- | src/lib/libcrypto/evp/evp.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h index aa0a9e77c9..b5afa477da 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.90 2021/12/24 12:55:04 tb Exp $ */ | 1 | /* $OpenBSD: evp.h,v 1.91 2022/01/07 21:58:17 tb 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 | * |
@@ -1331,7 +1331,17 @@ typedef struct evp_aead_ctx_st { | |||
1331 | * should be used. */ | 1331 | * should be used. */ |
1332 | #define EVP_AEAD_DEFAULT_TAG_LENGTH 0 | 1332 | #define EVP_AEAD_DEFAULT_TAG_LENGTH 0 |
1333 | 1333 | ||
1334 | /* EVP_AEAD_init initializes the context for the given AEAD algorithm. | 1334 | #if defined(LIBRESSL_CRYPTO_INTERANL) || defined(LIBRESSL_NEXT_API) |
1335 | /* EVP_AEAD_CTX_new allocates a new context for use with EVP_AEAD_CTX_init. | ||
1336 | * It can be cleaned up for reuse with EVP_AEAD_CTX_cleanup and must be freed | ||
1337 | * with EVP_AEAD_CTX_free. */ | ||
1338 | EVP_AEAD_CTX *EVP_AEAD_CTX_new(void); | ||
1339 | |||
1340 | /* EVP_AEAD_CTX_free releases all memory owned by the context. */ | ||
1341 | void EVP_AEAD_CTX_free(EVP_AEAD_CTX *ctx); | ||
1342 | #endif | ||
1343 | |||
1344 | /* EVP_AEAD_CTX_init initializes the context for the given AEAD algorithm. | ||
1335 | * The implementation argument may be NULL to choose the default implementation. | 1345 | * The implementation argument may be NULL to choose the default implementation. |
1336 | * Authentication tags may be truncated by passing a tag length. A tag length | 1346 | * Authentication tags may be truncated by passing a tag length. A tag length |
1337 | * of zero indicates the default tag length should be used. */ | 1347 | * of zero indicates the default tag length should be used. */ |