xref: /freebsd/crypto/openssl/providers/implementations/include/prov/kdfexchange.h (revision b077aed33b7b6aefca7b17ddb250cf521f938613)
1*b077aed3SPierre Pronchery /*
2*b077aed3SPierre Pronchery  * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
3*b077aed3SPierre Pronchery  *
4*b077aed3SPierre Pronchery  * Licensed under the Apache License 2.0 (the "License").  You may not use
5*b077aed3SPierre Pronchery  * this file except in compliance with the License.  You can obtain a copy
6*b077aed3SPierre Pronchery  * in the file LICENSE in the source distribution or at
7*b077aed3SPierre Pronchery  * https://www.openssl.org/source/license.html
8*b077aed3SPierre Pronchery  */
9*b077aed3SPierre Pronchery 
10*b077aed3SPierre Pronchery #include <stdlib.h>
11*b077aed3SPierre Pronchery #include <openssl/crypto.h>
12*b077aed3SPierre Pronchery #include "internal/refcount.h"
13*b077aed3SPierre Pronchery 
14*b077aed3SPierre Pronchery struct kdf_data_st {
15*b077aed3SPierre Pronchery     OSSL_LIB_CTX *libctx;
16*b077aed3SPierre Pronchery     CRYPTO_REF_COUNT refcnt;
17*b077aed3SPierre Pronchery     CRYPTO_RWLOCK *lock;
18*b077aed3SPierre Pronchery };
19*b077aed3SPierre Pronchery 
20*b077aed3SPierre Pronchery typedef struct kdf_data_st KDF_DATA;
21*b077aed3SPierre Pronchery 
22*b077aed3SPierre Pronchery KDF_DATA *ossl_kdf_data_new(void *provctx);
23*b077aed3SPierre Pronchery void ossl_kdf_data_free(KDF_DATA *kdfdata);
24*b077aed3SPierre Pronchery int ossl_kdf_data_up_ref(KDF_DATA *kdfdata);
25