1 /* 2 * Copyright 2020-2023 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 }; 18 19 typedef struct kdf_data_st KDF_DATA; 20 21 KDF_DATA *ossl_kdf_data_new(void *provctx); 22 void ossl_kdf_data_free(KDF_DATA *kdfdata); 23 int ossl_kdf_data_up_ref(KDF_DATA *kdfdata); 24