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