/openssl/crypto/evp/ |
H A D | kdf_meth.c | 34 if (kdf == NULL) in evp_kdf_free() 43 OPENSSL_free(kdf); in evp_kdf_free() 48 EVP_KDF *kdf = NULL; in evp_kdf_new() local 50 if ((kdf = OPENSSL_zalloc(sizeof(*kdf))) == NULL in evp_kdf_new() 52 OPENSSL_free(kdf); in evp_kdf_new() 55 return kdf; in evp_kdf_new() 63 EVP_KDF *kdf = NULL; in evp_kdf_from_algorithm() local 72 evp_kdf_free(kdf); in evp_kdf_from_algorithm() 152 kdf->prov = prov; in evp_kdf_from_algorithm() 156 return kdf; in evp_kdf_from_algorithm() [all …]
|
H A D | kdf_lib.c | 27 if (kdf == NULL) in EVP_KDF_CTX_new() 32 || (ctx->algctx = kdf->newctx(ossl_provider_ctx(kdf->prov))) == NULL in EVP_KDF_CTX_new() 33 || !EVP_KDF_up_ref(kdf)) { in EVP_KDF_CTX_new() 40 ctx->meth = kdf; in EVP_KDF_CTX_new() 83 return kdf->name_id; in evp_kdf_get_number() 88 return kdf->type_name; in EVP_KDF_get0_name() 93 return kdf->description; in EVP_KDF_get0_description() 98 return kdf != NULL && evp_is_a(kdf->prov, kdf->name_id, NULL, name); in EVP_KDF_is_a() 103 return kdf->prov; in EVP_KDF_get0_provider() 178 if (kdf->prov != NULL) in EVP_KDF_names_do_all() [all …]
|
H A D | p5_crpt2.c | 29 EVP_KDF *kdf; in ossl_pkcs5_pbkdf2_hmac_ex() local 45 if (kdf == NULL) in ossl_pkcs5_pbkdf2_hmac_ex() 47 kctx = EVP_KDF_CTX_new(kdf); in ossl_pkcs5_pbkdf2_hmac_ex() 48 EVP_KDF_free(kdf); in ossl_pkcs5_pbkdf2_hmac_ex() 121 EVP_PBE_KEYGEN_EX *kdf; in PKCS5_v2_PBE_keyivgen_ex() local 190 PBKDF2PARAM *kdf = NULL; in PKCS5_v2_PBKDF2_keyivgen_ex() local 205 if (kdf == NULL) { in PKCS5_v2_PBKDF2_keyivgen_ex() 219 if (kdf->keylength && (ASN1_INTEGER_get(kdf->keylength) != (int)keylen)) { in PKCS5_v2_PBKDF2_keyivgen_ex() 224 if (kdf->prf) in PKCS5_v2_PBKDF2_keyivgen_ex() 253 iter = ASN1_INTEGER_get(kdf->iter); in PKCS5_v2_PBKDF2_keyivgen_ex() [all …]
|
H A D | pbe_scrypt.c | 45 EVP_KDF *kdf; in EVP_PBE_scrypt_ex() local 67 kdf = EVP_KDF_fetch(ctx, OSSL_KDF_NAME_SCRYPT, propq); in EVP_PBE_scrypt_ex() 68 kctx = EVP_KDF_CTX_new(kdf); in EVP_PBE_scrypt_ex() 69 EVP_KDF_free(kdf); in EVP_PBE_scrypt_ex()
|
H A D | p5_crpt.c | 39 EVP_KDF *kdf; in PKCS5_PBE_keyivgen_ex() local 84 kdf = EVP_KDF_fetch(libctx, OSSL_KDF_NAME_PBKDF1, propq); in PKCS5_PBE_keyivgen_ex() 85 kctx = EVP_KDF_CTX_new(kdf); in PKCS5_PBE_keyivgen_ex() 86 EVP_KDF_free(kdf); in PKCS5_PBE_keyivgen_ex()
|
/openssl/include/openssl/ |
H A D | kdf.h | 28 int EVP_KDF_up_ref(EVP_KDF *kdf); 29 void EVP_KDF_free(EVP_KDF *kdf); 33 EVP_KDF_CTX *EVP_KDF_CTX_new(EVP_KDF *kdf); 36 const char *EVP_KDF_get0_description(const EVP_KDF *kdf); 37 int EVP_KDF_is_a(const EVP_KDF *kdf, const char *name); 38 const char *EVP_KDF_get0_name(const EVP_KDF *kdf); 39 const OSSL_PROVIDER *EVP_KDF_get0_provider(const EVP_KDF *kdf); 46 int EVP_KDF_get_params(EVP_KDF *kdf, OSSL_PARAM params[]); 49 const OSSL_PARAM *EVP_KDF_gettable_params(const EVP_KDF *kdf); 56 void (*fn)(EVP_KDF *kdf, void *arg), [all …]
|
/openssl/providers/implementations/exchange/ |
H A D | kdf_exch.c | 48 EVP_KDF *kdf = NULL; in kdf_newctx() local 59 kdf = EVP_KDF_fetch(PROV_LIBCTX_OF(provctx), kdfname, NULL); in kdf_newctx() 60 if (kdf == NULL) in kdf_newctx() 62 kdfctx->kdfctx = EVP_KDF_CTX_new(kdf); in kdf_newctx() 63 EVP_KDF_free(kdf); in kdf_newctx() 191 if (kdf == NULL) in kdf_settable_ctx_params() 194 params = EVP_KDF_settable_ctx_params(kdf); in kdf_settable_ctx_params() 195 EVP_KDF_free(kdf); in kdf_settable_ctx_params() 219 if (kdf == NULL) in kdf_gettable_ctx_params() 222 params = EVP_KDF_gettable_ctx_params(kdf); in kdf_gettable_ctx_params() [all …]
|
/openssl/crypto/asn1/ |
H A D | p5_pbev2.c | 187 PBKDF2PARAM *kdf = NULL; in PKCS5_pbkdf2_set_ex() local 190 if ((kdf = PBKDF2PARAM_new()) == NULL) { in PKCS5_pbkdf2_set_ex() 199 kdf->salt->value.octet_string = osalt; in PKCS5_pbkdf2_set_ex() 200 kdf->salt->type = V_ASN1_OCTET_STRING; in PKCS5_pbkdf2_set_ex() 224 if (!ASN1_INTEGER_set(kdf->iter, iter)) { in PKCS5_pbkdf2_set_ex() 232 if ((kdf->keylength = ASN1_INTEGER_new()) == NULL) { in PKCS5_pbkdf2_set_ex() 236 if (!ASN1_INTEGER_set(kdf->keylength, keylen)) { in PKCS5_pbkdf2_set_ex() 245 if (kdf->prf == NULL) { in PKCS5_pbkdf2_set_ex() 263 if (!ASN1_TYPE_pack_sequence(ASN1_ITEM_rptr(PBKDF2PARAM), kdf, in PKCS5_pbkdf2_set_ex() 269 PBKDF2PARAM_free(kdf); in PKCS5_pbkdf2_set_ex() [all …]
|
/openssl/demos/kdf/ |
H A D | pbkdf2.c | 61 EVP_KDF *kdf = NULL; in main() local 74 kdf = EVP_KDF_fetch(library_context, "PBKDF2", NULL); in main() 75 if (kdf == NULL) { in main() 81 kctx = EVP_KDF_CTX_new(kdf); in main() 116 EVP_KDF_free(kdf); in main()
|
H A D | hkdf.c | 47 EVP_KDF *kdf = NULL; in main() local 60 kdf = EVP_KDF_fetch(library_context, "HKDF", NULL); in main() 61 if (kdf == NULL) { in main() 67 kctx = EVP_KDF_CTX_new(kdf); in main() 103 EVP_KDF_free(kdf); in main()
|
H A D | scrypt.c | 63 EVP_KDF *kdf = NULL; in main() local 76 kdf = EVP_KDF_fetch(library_context, "SCRYPT", NULL); in main() 77 if (kdf == NULL) { in main() 83 kctx = EVP_KDF_CTX_new(kdf); in main() 119 EVP_KDF_free(kdf); in main()
|
H A D | argon2.c | 78 EVP_KDF *kdf = NULL; in main() local 92 kdf = EVP_KDF_fetch(library_context, "argon2id", NULL); in main() 93 if (kdf == NULL) { in main() 99 kctx = EVP_KDF_CTX_new(kdf); in main() 153 EVP_KDF_free(kdf); in main()
|
/openssl/doc/man7/ |
H A D | EVP_KDF-SS.pod | 95 EVP_KDF_CTX *kctx = EVP_KDF_CTX_new(kdf); 105 EVP_KDF *kdf; 110 kdf = EVP_KDF_fetch(NULL, "SSKDF", NULL); 111 kctx = EVP_KDF_CTX_new(kdf); 112 EVP_KDF_free(kdf); 130 EVP_KDF *kdf; 136 kctx = EVP_KDF_CTX_new(kdf); 137 EVP_KDF_free(kdf); 159 EVP_KDF *kdf; 165 kctx = EVP_KDF_CTX_new(kdf); [all …]
|
H A D | EVP_KDF-KB.pod | 108 EVP_KDF *kdf = EVP_KDF_fetch(NULL, "KBKDF", NULL); 109 EVP_KDF_CTX *kctx = EVP_KDF_CTX_new(kdf); 122 EVP_KDF *kdf; 127 kdf = EVP_KDF_fetch(NULL, "KBKDF", NULL); 128 kctx = EVP_KDF_CTX_new(kdf); 129 EVP_KDF_free(kdf); 150 EVP_KDF *kdf; 156 kdf = EVP_KDF_fetch(NULL, "KBKDF", NULL); 157 kctx = EVP_KDF_CTX_new(kdf); 158 EVP_KDF_free(kdf);
|
H A D | EVP_KDF-KRB5KDF.pod | 46 EVP_KDF *kdf = EVP_KDF_fetch(NULL, "KRB5KDF", NULL); 47 EVP_KDF_CTX *kctx = EVP_KDF_CTX_new(kdf); 64 EVP_KDF *kdf; 72 kdf = EVP_KDF_fetch(NULL, "KRB5KDF", NULL); 73 kctx = EVP_KDF_CTX_new(kdf); 74 EVP_KDF_free(kdf);
|
H A D | EVP_KDF-X963.pod | 85 EVP_KDF *kdf = EVP_KDF_fetch(NULL, "X963KDF", NULL); 86 EVP_KDF_CTX *kctx = EVP_KDF_CTX_new(kdf); 96 EVP_KDF *kdf; 101 kdf = EVP_KDF_fetch(NULL, "X963KDF", NULL); 102 kctx = EVP_KDF_CTX_new(kdf); 103 EVP_KDF_free(kdf);
|
/openssl/crypto/dh/ |
H A D | dh_kdf.c | 36 EVP_KDF *kdf = NULL; in ossl_dh_kdf_X9_42_asn1() local 40 kdf = EVP_KDF_fetch(libctx, OSSL_KDF_NAME_X942KDF_ASN1, propq); in ossl_dh_kdf_X9_42_asn1() 41 if (kdf == NULL) in ossl_dh_kdf_X9_42_asn1() 43 kctx = EVP_KDF_CTX_new(kdf); in ossl_dh_kdf_X9_42_asn1() 60 EVP_KDF_free(kdf); in ossl_dh_kdf_X9_42_asn1()
|
/openssl/crypto/pkcs12/ |
H A D | p12_npas.c | 203 PBKDF2PARAM *kdf = NULL; in alg_get() local 220 kdf = ASN1_item_unpack(aparam, ASN1_ITEM_rptr(PBKDF2PARAM)); in alg_get() 221 if (kdf == NULL) in alg_get() 225 if (kdf->salt->type != V_ASN1_OCTET_STRING) in alg_get() 228 if (kdf->prf == NULL) { in alg_get() 231 X509_ALGOR_get0(&aoid, NULL, NULL, kdf->prf); in alg_get() 234 *psaltlen = kdf->salt->value.octet_string->length; in alg_get() 235 *piter = ASN1_INTEGER_get(kdf->iter); in alg_get() 252 if (kdf != NULL) in alg_get() 253 PBKDF2PARAM_free(kdf); in alg_get()
|
H A D | p12_key.c | 85 EVP_KDF *kdf; in PKCS12_key_gen_uni_ex() local 92 kdf = EVP_KDF_fetch(libctx, "PKCS12KDF", propq); in PKCS12_key_gen_uni_ex() 93 if (kdf == NULL) in PKCS12_key_gen_uni_ex() 95 ctx = EVP_KDF_CTX_new(kdf); in PKCS12_key_gen_uni_ex() 96 EVP_KDF_free(kdf); in PKCS12_key_gen_uni_ex()
|
/openssl/doc/man3/ |
H A D | EVP_KDF.pod | 18 #include <openssl/kdf.h> 23 EVP_KDF_CTX *EVP_KDF_CTX_new(EVP_KDF *kdf); 31 int EVP_KDF_up_ref(EVP_KDF *kdf); 32 void EVP_KDF_free(EVP_KDF *kdf); 35 int EVP_KDF_is_a(const EVP_KDF *kdf, const char *name); 36 const char *EVP_KDF_get0_name(const EVP_KDF *kdf); 42 int EVP_KDF_names_do_all(const EVP_KDF *kdf, 112 I<kdf>. 163 of the given I<kdf>. 179 the I<kdf> implementation. [all …]
|
/openssl/crypto/ec/ |
H A D | ecdh_kdf.c | 34 EVP_KDF *kdf = EVP_KDF_fetch(libctx, OSSL_KDF_NAME_X963KDF, propq); in ossl_ecdh_kdf_X9_63() local 36 if ((kctx = EVP_KDF_CTX_new(kdf)) != NULL) { in ossl_ecdh_kdf_X9_63() 48 EVP_KDF_free(kdf); in ossl_ecdh_kdf_X9_63()
|
/openssl/apps/ |
H A D | kdf.c | 80 EVP_KDF *kdf = NULL; in kdf_main() local 141 if ((kdf = EVP_KDF_fetch(app_get0_libctx(), argv[0], in kdf_main() 147 ctx = EVP_KDF_CTX_new(kdf); in kdf_main() 154 app_params_new_from_opts(opts, EVP_KDF_settable_ctx_params(kdf)); in kdf_main() 203 EVP_KDF_free(kdf); in kdf_main()
|
/openssl/crypto/hpke/ |
H A D | hpke_util.c | 396 EVP_KDF *kdf; in ossl_kdf_ctx_create() local 399 kdf = EVP_KDF_fetch(libctx, kdfname, propq); in ossl_kdf_ctx_create() 400 if (kdf == NULL) { in ossl_kdf_ctx_create() 404 kctx = EVP_KDF_CTX_new(kdf); in ossl_kdf_ctx_create() 405 EVP_KDF_free(kdf); in ossl_kdf_ctx_create() 453 uint16_t kem = 0, kdf = 0, aead = 0; in ossl_hpke_str2suite() local 504 && (kdf = synonyms_name2id(st, kdfstrtab, in ossl_hpke_str2suite() 521 suite->kdf_id = kdf; in ossl_hpke_str2suite()
|
/openssl/doc/man1/ |
H A D | openssl-kdf.pod.in | 6 openssl-kdf - perform Key Derivation Function operations 10 B<openssl kdf> 152 openssl kdf -keylen 16 -kdfopt digest:SHA2-256 -kdfopt key:secret \ 157 openssl kdf -keylen 10 -kdfopt digest:SHA2-256 -kdfopt key:secret \ 162 openssl kdf -keylen 64 -kdfopt mac:KMAC-128 -kdfopt maclen:20 \ 168 openssl kdf -keylen 16 -kdfopt mac:HMAC -kdfopt digest:SHA2-256 \ 174 openssl kdf -keylen 14 -kdfopt digest:SHA2-256 \ 180 openssl kdf -keylen 16 -kdfopt digest:SHA2-256 \ 188 openssl kdf -keylen 32 -kdfopt digest:SHA256 -kdfopt pass:password \ 193 openssl kdf -keylen 64 -kdfopt pass:password -kdfopt salt:NaCl \
|
/openssl/crypto/ |
H A D | deterministic_nonce.c | 137 EVP_KDF *kdf = NULL; in kdf_setup() local 140 kdf = EVP_KDF_fetch(libctx, "HMAC-DRBG-KDF", propq); in kdf_setup() 141 ctx = EVP_KDF_CTX_new(kdf); in kdf_setup() 142 EVP_KDF_free(kdf); in kdf_setup()
|