kdfexchange.h 693 B

123456789101112131415161718192021222324
  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. #include <stdlib.h>
  10. #include <openssl/crypto.h>
  11. #include "internal/refcount.h"
  12. struct kdf_data_st {
  13. OSSL_LIB_CTX *libctx;
  14. CRYPTO_REF_COUNT refcnt;
  15. CRYPTO_RWLOCK *lock;
  16. };
  17. typedef struct kdf_data_st KDF_DATA;
  18. KDF_DATA *ossl_kdf_data_new(void *provctx);
  19. void ossl_kdf_data_free(KDF_DATA *kdfdata);
  20. int ossl_kdf_data_up_ref(KDF_DATA *kdfdata);