/third_party/node/deps/openssl/openssl/crypto/evp/ |
D | kdf_meth.c | 22 EVP_KDF *kdf = (EVP_KDF *)vkdf; in evp_kdf_up_ref() local 25 CRYPTO_UP_REF(&kdf->refcnt, &ref, kdf->lock); in evp_kdf_up_ref() 31 EVP_KDF *kdf = (EVP_KDF *)vkdf; in evp_kdf_free() local 34 if (kdf == NULL) in evp_kdf_free() 37 CRYPTO_DOWN_REF(&kdf->refcnt, &ref, kdf->lock); in evp_kdf_free() 40 OPENSSL_free(kdf->type_name); in evp_kdf_free() 41 ossl_provider_free(kdf->prov); in evp_kdf_free() 42 CRYPTO_THREAD_lock_free(kdf->lock); in evp_kdf_free() 43 OPENSSL_free(kdf); in evp_kdf_free() 48 EVP_KDF *kdf = NULL; in evp_kdf_new() local [all …]
|
D | kdf_lib.c | 23 EVP_KDF_CTX *EVP_KDF_CTX_new(EVP_KDF *kdf) in EVP_KDF_CTX_new() argument 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() 36 kdf->freectx(ctx->algctx); in EVP_KDF_CTX_new() 40 ctx->meth = kdf; in EVP_KDF_CTX_new() 83 int evp_kdf_get_number(const EVP_KDF *kdf) in evp_kdf_get_number() argument 85 return kdf->name_id; in evp_kdf_get_number() 88 const char *EVP_KDF_get0_name(const EVP_KDF *kdf) in EVP_KDF_get0_name() argument 90 return kdf->type_name; in EVP_KDF_get0_name() [all …]
|
D | p5_crpt2.c | 29 EVP_KDF *kdf; in ossl_pkcs5_pbkdf2_hmac_ex() local 44 kdf = EVP_KDF_fetch(libctx, OSSL_KDF_NAME_PBKDF2, propq); in ossl_pkcs5_pbkdf2_hmac_ex() 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 133 NULL, NULL, NULL, &kdf)) { in PKCS5_v2_PBE_keyivgen_ex() 166 rv = kdf(ctx, pass, passlen, pbe2->keyfunc->parameter, NULL, NULL, en_de, libctx, propq); in PKCS5_v2_PBE_keyivgen_ex() 190 PBKDF2PARAM *kdf = NULL; in PKCS5_v2_PBKDF2_keyivgen_ex() local 203 kdf = ASN1_TYPE_unpack_sequence(ASN1_ITEM_rptr(PBKDF2PARAM), param); in PKCS5_v2_PBKDF2_keyivgen_ex() [all …]
|
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()
|
/third_party/openssl/crypto/evp/ |
D | kdf_meth.c | 22 EVP_KDF *kdf = (EVP_KDF *)vkdf; in evp_kdf_up_ref() local 25 CRYPTO_UP_REF(&kdf->refcnt, &ref, kdf->lock); in evp_kdf_up_ref() 31 EVP_KDF *kdf = (EVP_KDF *)vkdf; in evp_kdf_free() local 34 if (kdf == NULL) in evp_kdf_free() 37 CRYPTO_DOWN_REF(&kdf->refcnt, &ref, kdf->lock); in evp_kdf_free() 40 OPENSSL_free(kdf->type_name); in evp_kdf_free() 41 ossl_provider_free(kdf->prov); in evp_kdf_free() 42 CRYPTO_THREAD_lock_free(kdf->lock); in evp_kdf_free() 43 OPENSSL_free(kdf); in evp_kdf_free() 48 EVP_KDF *kdf = NULL; in evp_kdf_new() local [all …]
|
D | kdf_lib.c | 23 EVP_KDF_CTX *EVP_KDF_CTX_new(EVP_KDF *kdf) in EVP_KDF_CTX_new() argument 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() 36 kdf->freectx(ctx->algctx); in EVP_KDF_CTX_new() 40 ctx->meth = kdf; in EVP_KDF_CTX_new() 83 int evp_kdf_get_number(const EVP_KDF *kdf) in evp_kdf_get_number() argument 85 return kdf->name_id; in evp_kdf_get_number() 88 const char *EVP_KDF_get0_name(const EVP_KDF *kdf) in EVP_KDF_get0_name() argument 90 return kdf->type_name; in EVP_KDF_get0_name() [all …]
|
D | p5_crpt2.c | 29 EVP_KDF *kdf; in ossl_pkcs5_pbkdf2_hmac_ex() local 44 kdf = EVP_KDF_fetch(libctx, OSSL_KDF_NAME_PBKDF2, propq); in ossl_pkcs5_pbkdf2_hmac_ex() 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 133 NULL, NULL, NULL, &kdf)) { in PKCS5_v2_PBE_keyivgen_ex() 166 rv = kdf(ctx, pass, passlen, pbe2->keyfunc->parameter, NULL, NULL, en_de, libctx, propq); in PKCS5_v2_PBE_keyivgen_ex() 190 PBKDF2PARAM *kdf = NULL; in PKCS5_v2_PBKDF2_keyivgen_ex() local 203 kdf = ASN1_TYPE_unpack_sequence(ASN1_ITEM_rptr(PBKDF2PARAM), param); in PKCS5_v2_PBKDF2_keyivgen_ex() [all …]
|
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()
|
/third_party/openssl/include/openssl/ |
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); 50 const OSSL_PARAM *EVP_KDF_gettable_ctx_params(const EVP_KDF *kdf); [all …]
|
/third_party/node/deps/openssl/openssl/include/openssl/ |
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); 50 const OSSL_PARAM *EVP_KDF_gettable_ctx_params(const EVP_KDF *kdf); [all …]
|
/third_party/node/deps/openssl/openssl/crypto/asn1/ |
D | p5_pbev2.c | 169 PBKDF2PARAM *kdf = NULL; in PKCS5_pbkdf2_set_ex() local 172 if ((kdf = PBKDF2PARAM_new()) == NULL) in PKCS5_pbkdf2_set_ex() 177 kdf->salt->value.octet_string = osalt; in PKCS5_pbkdf2_set_ex() 178 kdf->salt->type = V_ASN1_OCTET_STRING; in PKCS5_pbkdf2_set_ex() 197 if (!ASN1_INTEGER_set(kdf->iter, iter)) in PKCS5_pbkdf2_set_ex() 203 if ((kdf->keylength = ASN1_INTEGER_new()) == NULL) in PKCS5_pbkdf2_set_ex() 205 if (!ASN1_INTEGER_set(kdf->keylength, keylen)) in PKCS5_pbkdf2_set_ex() 211 kdf->prf = X509_ALGOR_new(); in PKCS5_pbkdf2_set_ex() 212 if (kdf->prf == NULL) in PKCS5_pbkdf2_set_ex() 214 X509_ALGOR_set0(kdf->prf, OBJ_nid2obj(prf_nid), V_ASN1_NULL, NULL); in PKCS5_pbkdf2_set_ex() [all …]
|
/third_party/openssl/crypto/asn1/ |
D | p5_pbev2.c | 169 PBKDF2PARAM *kdf = NULL; in PKCS5_pbkdf2_set_ex() local 172 if ((kdf = PBKDF2PARAM_new()) == NULL) in PKCS5_pbkdf2_set_ex() 177 kdf->salt->value.octet_string = osalt; in PKCS5_pbkdf2_set_ex() 178 kdf->salt->type = V_ASN1_OCTET_STRING; in PKCS5_pbkdf2_set_ex() 197 if (!ASN1_INTEGER_set(kdf->iter, iter)) in PKCS5_pbkdf2_set_ex() 203 if ((kdf->keylength = ASN1_INTEGER_new()) == NULL) in PKCS5_pbkdf2_set_ex() 205 if (!ASN1_INTEGER_set(kdf->keylength, keylen)) in PKCS5_pbkdf2_set_ex() 211 kdf->prf = X509_ALGOR_new(); in PKCS5_pbkdf2_set_ex() 212 if (kdf->prf == NULL) in PKCS5_pbkdf2_set_ex() 214 X509_ALGOR_set0(kdf->prf, OBJ_nid2obj(prf_nid), V_ASN1_NULL, NULL); in PKCS5_pbkdf2_set_ex() [all …]
|
/third_party/openssl/doc/man7/ |
D | EVP_KDF-SS.pod | 70 EVP_KDF *kdf = EVP_KDF_fetch(NULL, "SSKDF", NULL); 71 EVP_KDF_CTX *kctx = EVP_KDF_CTX_new(kdf); 81 EVP_KDF *kdf; 86 kdf = EVP_KDF_fetch(NULL, "SSKDF", NULL); 87 kctx = EVP_KDF_CTX_new(kdf); 88 EVP_KDF_free(kdf); 106 EVP_KDF *kdf; 111 kdf = EVP_KDF_fetch(NULL, "SSKDF", NULL); 112 kctx = EVP_KDF_CTX_new(kdf); 113 EVP_KDF_free(kdf); [all …]
|
D | EVP_KDF-KB.pod | 77 EVP_KDF *kdf = EVP_KDF_fetch(NULL, "KBKDF", NULL); 78 EVP_KDF_CTX *kctx = EVP_KDF_CTX_new(kdf); 91 EVP_KDF *kdf; 96 kdf = EVP_KDF_fetch(NULL, "KBKDF", NULL); 97 kctx = EVP_KDF_CTX_new(kdf); 98 EVP_KDF_free(kdf); 119 EVP_KDF *kdf; 125 kdf = EVP_KDF_fetch(NULL, "KBKDF", NULL); 126 kctx = EVP_KDF_CTX_new(kdf); 127 EVP_KDF_free(kdf);
|
D | EVP_KDF-X963.pod | 48 EVP_KDF *kdf = EVP_KDF_fetch(NULL, "X963KDF", NULL); 49 EVP_KDF_CTX *kctx = EVP_KDF_CTX_new(kdf); 59 EVP_KDF *kdf; 64 kdf = EVP_KDF_fetch(NULL, "X963KDF", NULL); 65 kctx = EVP_KDF_CTX_new(kdf); 66 EVP_KDF_free(kdf);
|
D | EVP_KDF-TLS1_PRF.pod | 53 EVP_KDF *kdf = EVP_KDF_fetch(NULL, "TLS1-PRF", NULL); 54 EVP_KDF_CTX *kctx = EVP_KDF_CTX_new(kdf); 67 EVP_KDF *kdf; 72 kdf = EVP_KDF_fetch(NULL, "TLS1-PRF", NULL); 73 kctx = EVP_KDF_CTX_new(kdf); 74 EVP_KDF_free(kdf);
|
/third_party/node/deps/openssl/openssl/providers/implementations/exchange/ |
D | kdf_exch.c | 44 EVP_KDF *kdf = NULL; in kdf_newctx() local 55 kdf = EVP_KDF_fetch(PROV_LIBCTX_OF(provctx), kdfname, NULL); in kdf_newctx() 56 if (kdf == NULL) in kdf_newctx() 58 kdfctx->kdfctx = EVP_KDF_CTX_new(kdf); in kdf_newctx() 59 EVP_KDF_free(kdf); in kdf_newctx() 176 EVP_KDF *kdf = EVP_KDF_fetch(PROV_LIBCTX_OF(provctx), kdfname, in kdf_settable_ctx_params() local 180 if (kdf == NULL) in kdf_settable_ctx_params() 183 params = EVP_KDF_settable_ctx_params(kdf); in kdf_settable_ctx_params() 184 EVP_KDF_free(kdf); in kdf_settable_ctx_params()
|
/third_party/openssl/providers/implementations/exchange/ |
D | kdf_exch.c | 44 EVP_KDF *kdf = NULL; in kdf_newctx() local 55 kdf = EVP_KDF_fetch(PROV_LIBCTX_OF(provctx), kdfname, NULL); in kdf_newctx() 56 if (kdf == NULL) in kdf_newctx() 58 kdfctx->kdfctx = EVP_KDF_CTX_new(kdf); in kdf_newctx() 59 EVP_KDF_free(kdf); in kdf_newctx() 176 EVP_KDF *kdf = EVP_KDF_fetch(PROV_LIBCTX_OF(provctx), kdfname, in kdf_settable_ctx_params() local 180 if (kdf == NULL) in kdf_settable_ctx_params() 183 params = EVP_KDF_settable_ctx_params(kdf); in kdf_settable_ctx_params() 184 EVP_KDF_free(kdf); in kdf_settable_ctx_params()
|
/third_party/openssl/doc/man3/ |
D | EVP_KDF.pod | 18 #include <openssl/kdf.h> 23 EVP_KDF_CTX *EVP_KDF_CTX_new(const 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); 37 const char *EVP_KDF_get0_description(const EVP_KDF *kdf); 38 const OSSL_PROVIDER *EVP_KDF_get0_provider(const EVP_KDF *kdf); 40 void (*fn)(EVP_KDF *kdf, void *arg), 42 int EVP_KDF_names_do_all(const EVP_KDF *kdf, [all …]
|
/third_party/openssl/demos/kdf/ |
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() 114 EVP_KDF_free(kdf); in main()
|
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() 101 EVP_KDF_free(kdf); in main()
|
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() 117 EVP_KDF_free(kdf); in main()
|
/third_party/openssl/crypto/dh/ |
D | dh_kdf.c | 37 EVP_KDF *kdf = NULL; in ossl_dh_kdf_X9_42_asn1() local 41 kdf = EVP_KDF_fetch(libctx, OSSL_KDF_NAME_X942KDF_ASN1, propq); in ossl_dh_kdf_X9_42_asn1() 42 if (kdf == NULL) in ossl_dh_kdf_X9_42_asn1() 44 kctx = EVP_KDF_CTX_new(kdf); in ossl_dh_kdf_X9_42_asn1() 61 EVP_KDF_free(kdf); in ossl_dh_kdf_X9_42_asn1()
|
/third_party/node/deps/openssl/openssl/crypto/dh/ |
D | dh_kdf.c | 37 EVP_KDF *kdf = NULL; in ossl_dh_kdf_X9_42_asn1() local 41 kdf = EVP_KDF_fetch(libctx, OSSL_KDF_NAME_X942KDF_ASN1, propq); in ossl_dh_kdf_X9_42_asn1() 42 if (kdf == NULL) in ossl_dh_kdf_X9_42_asn1() 44 kctx = EVP_KDF_CTX_new(kdf); in ossl_dh_kdf_X9_42_asn1() 61 EVP_KDF_free(kdf); in ossl_dh_kdf_X9_42_asn1()
|
/third_party/openssl/doc/man1/ |
D | openssl-kdf.pod.in | 6 openssl-kdf - perform Key Derivation Function operations 10 B<openssl kdf> 127 openssl kdf -keylen 16 -kdfopt digest:SHA2-256 -kdfopt key:secret \ 132 openssl kdf -keylen 10 -kdfopt digest:SHA2-256 -kdfopt key:secret \ 137 openssl kdf -keylen 64 -kdfopt mac:KMAC-128 -kdfopt maclen:20 \ 143 openssl kdf -keylen 16 -kdfopt mac:HMAC -kdfopt digest:SHA2-256 \ 149 openssl kdf -keylen 14 -kdfopt digest:SHA2-256 \ 155 openssl kdf -keylen 16 -kdfopt digest:SHA2-256 \ 163 openssl kdf -keylen 32 -kdfopt digest:SHA256 -kdfopt pass:password \ 168 openssl kdf -keylen 64 -kdfopt pass:password -kdfopt salt:NaCl \
|