/usr/include/openssl
NameSizeModeActions
aes.h33110644editdlrm
asn1.h577360644editdlrm
asn1err.h51690644editdlrm
asn1t.h386010644editdlrm
async.h30190644editdlrm
asyncerr.h7390644editdlrm
bio.h414040644editdlrm
bioerr.h23550644editdlrm
blowfish.h21360644editdlrm
bn.h223090644editdlrm
bnerr.h13290644editdlrm
buffer.h15910644editdlrm
buffererr.h5870644editdlrm
byteorder.h84440644editdlrm
camellia.h32660644editdlrm
cast.h18800644editdlrm
cmac.h14490644editdlrm
cmp.h480380644editdlrm
cmperr.h48210644editdlrm
cmp_util.h16270644editdlrm
cms.h311030644editdlrm
cmserr.h45470644editdlrm
comp.h46960644editdlrm
comperr.h10020644editdlrm
conf.h103870644editdlrm
conferr.h16970644editdlrm
configuration-x86_64.h44690644editdlrm
configuration.h15840644editdlrm
conftypes.h11760644editdlrm
conf_api.h13280644editdlrm
core.h78200644editdlrm
core_dispatch.h469480644editdlrm
core_names.h298420644editdlrm
core_object.h10470644editdlrm
crmf.h196440644editdlrm
crmferr.h18580644editdlrm
crypto.h231190644editdlrm
cryptoerr.h19860644editdlrm
cryptoerr_legacy.h480190644editdlrm
ct.h222380644editdlrm
cterr.h12410644editdlrm
decoder.h49070644editdlrm
decodererr.h7400644editdlrm
des.h77640644editdlrm
dh.h130250644editdlrm
dherr.h17020644editdlrm
dsa.h109820644editdlrm
dsaerr.h11640644editdlrm
dtls1.h12390644editdlrm
ebcdic.h10250644editdlrm
ec.h623130644editdlrm
ecdh.h3610644editdlrm
ecdsa.h3610644editdlrm
ecerr.h33590644editdlrm
encoder.h45700644editdlrm
encodererr.h7410644editdlrm
engine.h375360644editdlrm
engineerr.h20340644editdlrm
err.h204360644editdlrm
ess.h87040644editdlrm
esserr.h9820644editdlrm
evp.h956340644editdlrm
evperr.h55280644editdlrm
e_os2.h84450644editdlrm
e_ostime.h11470644editdlrm
fips.h6010644editdlrm
fipskey.h12360644editdlrm
fips_names.h16380644editdlrm
hmac.h18920644editdlrm
hpke.h60810644editdlrm
http.h47170644editdlrm
httperr.h18510644editdlrm
idea.h22850644editdlrm
indicator.h8180644editdlrm
kdf.h51010644editdlrm
kdferr.h4800644editdlrm
lhash.h333750644editdlrm
macros.h107180644editdlrm
md2.h13360644editdlrm
md4.h16100644editdlrm
md5.h16080644editdlrm
mdc2.h13120644editdlrm
ml_kem.h9590644editdlrm
modes.h81350644editdlrm
objects.h75670644editdlrm
objectserr.h6860644editdlrm
obj_mac.h2895250644editdlrm
ocsp.h278560644editdlrm
ocsperr.h16360644editdlrm
opensslconf.h5100644editdlrm
opensslv.h34490644editdlrm
ossl_typ.h5610644editdlrm
params.h70600644editdlrm
param_build.h23630644editdlrm
pem.h226670644editdlrm
pem2.h5230644editdlrm
pemerr.h18360644editdlrm
pkcs7.h218710644editdlrm
pkcs7err.h22420644editdlrm
pkcs12.h170040644editdlrm
pkcs12err.h14270644editdlrm
proverr.h64140644editdlrm
provider.h33830644editdlrm
prov_ssl.h9690644editdlrm
quic.h21010644editdlrm
rand.h40580644editdlrm
randerr.h24860644editdlrm
rc2.h17710644editdlrm
rc4.h10750644editdlrm
rc5.h21460644editdlrm
ripemd.h15370644editdlrm
rsa.h222990644editdlrm
rsaerr.h38610644editdlrm
safestack.h291540644editdlrm
seed.h36110644editdlrm
self_test.h47200644editdlrm
sha.h44040644editdlrm
srp.h151590644editdlrm
srtp.h18880644editdlrm
ssl.h1222130644editdlrm
ssl2.h6250644editdlrm
ssl3.h127480644editdlrm
sslerr.h154130644editdlrm
sslerr_legacy.h182690644editdlrm
stack.h31220644editdlrm
store.h140080644editdlrm
storeerr.h17020644editdlrm
symhacks.h11020644editdlrm
thread.h8650644editdlrm
tls1.h633210644editdlrm
trace.h108230644editdlrm
ts.h194190644editdlrm
tserr.h20770644editdlrm
txt_db.h16350644editdlrm
types.h73020644editdlrm
ui.h185120644editdlrm
uierr.h10620644editdlrm
whrlpool.h16810644editdlrm
x509.h674890644editdlrm
x509err.h23160644editdlrm
x509v3.h1293470644editdlrm
x509v3err.h35780644editdlrm
x509_acert.h219190644editdlrm
x509_vfy.h471760644editdlrm
Edit: /usr/include/openssl/kdf.h (5101B)
/* * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/license.html */ #ifndef OPENSSL_KDF_H #define OPENSSL_KDF_H #pragma once #include #ifndef OPENSSL_NO_DEPRECATED_3_0 #define HEADER_KDF_H #endif #include #include #include #include #ifdef __cplusplus extern "C" { #endif int EVP_KDF_up_ref(EVP_KDF *kdf); void EVP_KDF_free(EVP_KDF *kdf); EVP_KDF *EVP_KDF_fetch(OSSL_LIB_CTX *libctx, const char *algorithm, const char *properties); EVP_KDF_CTX *EVP_KDF_CTX_new(EVP_KDF *kdf); void EVP_KDF_CTX_free(EVP_KDF_CTX *ctx); EVP_KDF_CTX *EVP_KDF_CTX_dup(const EVP_KDF_CTX *src); const char *EVP_KDF_get0_description(const EVP_KDF *kdf); int EVP_KDF_is_a(const EVP_KDF *kdf, const char *name); const char *EVP_KDF_get0_name(const EVP_KDF *kdf); const OSSL_PROVIDER *EVP_KDF_get0_provider(const EVP_KDF *kdf); const EVP_KDF *EVP_KDF_CTX_kdf(EVP_KDF_CTX *ctx); void EVP_KDF_CTX_reset(EVP_KDF_CTX *ctx); size_t EVP_KDF_CTX_get_kdf_size(EVP_KDF_CTX *ctx); int EVP_KDF_derive(EVP_KDF_CTX *ctx, unsigned char *key, size_t keylen, const OSSL_PARAM params[]); int EVP_KDF_get_params(EVP_KDF *kdf, OSSL_PARAM params[]); int EVP_KDF_CTX_get_params(EVP_KDF_CTX *ctx, OSSL_PARAM params[]); int EVP_KDF_CTX_set_params(EVP_KDF_CTX *ctx, const OSSL_PARAM params[]); const OSSL_PARAM *EVP_KDF_gettable_params(const EVP_KDF *kdf); const OSSL_PARAM *EVP_KDF_gettable_ctx_params(const EVP_KDF *kdf); const OSSL_PARAM *EVP_KDF_settable_ctx_params(const EVP_KDF *kdf); const OSSL_PARAM *EVP_KDF_CTX_gettable_params(EVP_KDF_CTX *ctx); const OSSL_PARAM *EVP_KDF_CTX_settable_params(EVP_KDF_CTX *ctx); void EVP_KDF_do_all_provided(OSSL_LIB_CTX *libctx, void (*fn)(EVP_KDF *kdf, void *arg), void *arg); int EVP_KDF_names_do_all(const EVP_KDF *kdf, void (*fn)(const char *name, void *data), void *data); #define EVP_KDF_HKDF_MODE_EXTRACT_AND_EXPAND 0 #define EVP_KDF_HKDF_MODE_EXTRACT_ONLY 1 #define EVP_KDF_HKDF_MODE_EXPAND_ONLY 2 # define EVP_KDF_REDHAT_FIPS_INDICATOR_UNDETERMINED 0 # define EVP_KDF_REDHAT_FIPS_INDICATOR_APPROVED 1 # define EVP_KDF_REDHAT_FIPS_INDICATOR_NOT_APPROVED 2 #define EVP_KDF_SSHKDF_TYPE_INITIAL_IV_CLI_TO_SRV 65 #define EVP_KDF_SSHKDF_TYPE_INITIAL_IV_SRV_TO_CLI 66 #define EVP_KDF_SSHKDF_TYPE_ENCRYPTION_KEY_CLI_TO_SRV 67 #define EVP_KDF_SSHKDF_TYPE_ENCRYPTION_KEY_SRV_TO_CLI 68 #define EVP_KDF_SSHKDF_TYPE_INTEGRITY_KEY_CLI_TO_SRV 69 #define EVP_KDF_SSHKDF_TYPE_INTEGRITY_KEY_SRV_TO_CLI 70 /**** The legacy PKEY-based KDF API follows. ****/ #define EVP_PKEY_CTRL_TLS_MD (EVP_PKEY_ALG_CTRL) #define EVP_PKEY_CTRL_TLS_SECRET (EVP_PKEY_ALG_CTRL + 1) #define EVP_PKEY_CTRL_TLS_SEED (EVP_PKEY_ALG_CTRL + 2) #define EVP_PKEY_CTRL_HKDF_MD (EVP_PKEY_ALG_CTRL + 3) #define EVP_PKEY_CTRL_HKDF_SALT (EVP_PKEY_ALG_CTRL + 4) #define EVP_PKEY_CTRL_HKDF_KEY (EVP_PKEY_ALG_CTRL + 5) #define EVP_PKEY_CTRL_HKDF_INFO (EVP_PKEY_ALG_CTRL + 6) #define EVP_PKEY_CTRL_HKDF_MODE (EVP_PKEY_ALG_CTRL + 7) #define EVP_PKEY_CTRL_PASS (EVP_PKEY_ALG_CTRL + 8) #define EVP_PKEY_CTRL_SCRYPT_SALT (EVP_PKEY_ALG_CTRL + 9) #define EVP_PKEY_CTRL_SCRYPT_N (EVP_PKEY_ALG_CTRL + 10) #define EVP_PKEY_CTRL_SCRYPT_R (EVP_PKEY_ALG_CTRL + 11) #define EVP_PKEY_CTRL_SCRYPT_P (EVP_PKEY_ALG_CTRL + 12) #define EVP_PKEY_CTRL_SCRYPT_MAXMEM_BYTES (EVP_PKEY_ALG_CTRL + 13) #define EVP_PKEY_HKDEF_MODE_EXTRACT_AND_EXPAND \ EVP_KDF_HKDF_MODE_EXTRACT_AND_EXPAND #define EVP_PKEY_HKDEF_MODE_EXTRACT_ONLY \ EVP_KDF_HKDF_MODE_EXTRACT_ONLY #define EVP_PKEY_HKDEF_MODE_EXPAND_ONLY \ EVP_KDF_HKDF_MODE_EXPAND_ONLY int EVP_PKEY_CTX_set_tls1_prf_md(EVP_PKEY_CTX *ctx, const EVP_MD *md); int EVP_PKEY_CTX_set1_tls1_prf_secret(EVP_PKEY_CTX *pctx, const unsigned char *sec, int seclen); int EVP_PKEY_CTX_add1_tls1_prf_seed(EVP_PKEY_CTX *pctx, const unsigned char *seed, int seedlen); int EVP_PKEY_CTX_set_hkdf_md(EVP_PKEY_CTX *ctx, const EVP_MD *md); int EVP_PKEY_CTX_set1_hkdf_salt(EVP_PKEY_CTX *ctx, const unsigned char *salt, int saltlen); int EVP_PKEY_CTX_set1_hkdf_key(EVP_PKEY_CTX *ctx, const unsigned char *key, int keylen); int EVP_PKEY_CTX_add1_hkdf_info(EVP_PKEY_CTX *ctx, const unsigned char *info, int infolen); int EVP_PKEY_CTX_set_hkdf_mode(EVP_PKEY_CTX *ctx, int mode); #define EVP_PKEY_CTX_hkdf_mode EVP_PKEY_CTX_set_hkdf_mode int EVP_PKEY_CTX_set1_pbe_pass(EVP_PKEY_CTX *ctx, const char *pass, int passlen); int EVP_PKEY_CTX_set1_scrypt_salt(EVP_PKEY_CTX *ctx, const unsigned char *salt, int saltlen); int EVP_PKEY_CTX_set_scrypt_N(EVP_PKEY_CTX *ctx, uint64_t n); int EVP_PKEY_CTX_set_scrypt_r(EVP_PKEY_CTX *ctx, uint64_t r); int EVP_PKEY_CTX_set_scrypt_p(EVP_PKEY_CTX *ctx, uint64_t p); int EVP_PKEY_CTX_set_scrypt_maxmem_bytes(EVP_PKEY_CTX *ctx, uint64_t maxmem_bytes); #ifdef __cplusplus } #endif #endif