Home
last modified time | relevance | path

Searched refs:kctx (Results 1 - 25 of 33) sorted by relevance

12

/third_party/openssl/test/
H A Devp_kdf_test.c26 EVP_KDF_CTX *kctx = EVP_KDF_CTX_new(kdf); in get_kdfbyname_libctx() local
29 return kctx; in get_kdfbyname_libctx()
62 EVP_KDF_CTX *kctx = NULL; in test_kdf_tls1_prf() local
73 && TEST_ptr(kctx = get_kdfbyname(OSSL_KDF_NAME_TLS1_PRF)) in test_kdf_tls1_prf()
74 && TEST_int_gt(EVP_KDF_derive(kctx, out, sizeof(out), params), 0) in test_kdf_tls1_prf()
77 EVP_KDF_CTX_free(kctx); in test_kdf_tls1_prf()
85 EVP_KDF_CTX *kctx = NULL; in test_kdf_tls1_prf_invalid_digest() local
91 && TEST_ptr(kctx = get_kdfbyname(OSSL_KDF_NAME_TLS1_PRF)) in test_kdf_tls1_prf_invalid_digest()
92 && TEST_false(EVP_KDF_CTX_set_params(kctx, params)); in test_kdf_tls1_prf_invalid_digest()
94 EVP_KDF_CTX_free(kctx); in test_kdf_tls1_prf_invalid_digest()
102 EVP_KDF_CTX *kctx = NULL; test_kdf_tls1_prf_zero_output_size() local
122 EVP_KDF_CTX *kctx = NULL; test_kdf_tls1_prf_empty_secret() local
140 EVP_KDF_CTX *kctx = NULL; test_kdf_tls1_prf_1byte_secret() local
158 EVP_KDF_CTX *kctx = NULL; test_kdf_tls1_prf_empty_seed() local
178 EVP_KDF_CTX *kctx = NULL; test_kdf_tls1_prf_1byte_seed() local
223 EVP_KDF_CTX *kctx = NULL; test_kdf_hkdf() local
249 EVP_KDF_CTX *kctx = NULL; do_kdf_hkdf_gettables() local
305 EVP_KDF_CTX *kctx = NULL; test_kdf_hkdf_invalid_digest() local
322 EVP_KDF_CTX *kctx = NULL; test_kdf_hkdf_derive_set_params_fail() local
345 EVP_KDF_CTX *kctx = NULL; test_kdf_hkdf_set_invalid_mode() local
369 EVP_KDF_CTX *kctx = NULL; do_kdf_hkdf_set_invalid_param() local
405 EVP_KDF_CTX *kctx = NULL; test_kdf_hkdf_zero_output_size() local
425 EVP_KDF_CTX *kctx = NULL; test_kdf_hkdf_empty_key() local
443 EVP_KDF_CTX *kctx = NULL; test_kdf_hkdf_1byte_key() local
461 EVP_KDF_CTX *kctx = NULL; test_kdf_hkdf_empty_salt() local
500 EVP_KDF_CTX *kctx = NULL; test_kdf_pbkdf1() local
572 EVP_KDF_CTX *kctx = NULL; test_kdf_pbkdf2() local
604 EVP_KDF_CTX *kctx = NULL; test_kdf_pbkdf2_small_output() local
631 EVP_KDF_CTX *kctx = NULL; test_kdf_pbkdf2_large_output() local
662 EVP_KDF_CTX *kctx = NULL; test_kdf_pbkdf2_small_salt() local
687 EVP_KDF_CTX *kctx = NULL; test_kdf_pbkdf2_small_iterations() local
712 EVP_KDF_CTX *kctx = NULL; test_kdf_pbkdf2_small_salt_pkcs5() local
749 EVP_KDF_CTX *kctx = NULL; test_kdf_pbkdf2_small_iterations_pkcs5() local
786 EVP_KDF_CTX *kctx = NULL; test_kdf_pbkdf2_invalid_digest() local
812 EVP_KDF_CTX *kctx; test_kdf_scrypt() local
855 EVP_KDF_CTX *kctx; test_kdf_ss_hash() local
893 EVP_KDF_CTX *kctx; test_kdf_x963() local
951 EVP_KDF_CTX *kctx; test_kdf_kbkdf_6803_128() local
1006 EVP_KDF_CTX *kctx; test_kdf_kbkdf_6803_256() local
1099 EVP_KDF_CTX *kctx; test_kdf_kbkdf_invalid_digest() local
1121 EVP_KDF_CTX *kctx; test_kdf_kbkdf_invalid_mac() local
1143 EVP_KDF_CTX *kctx; test_kdf_kbkdf_empty_key() local
1167 EVP_KDF_CTX *kctx; test_kdf_kbkdf_1byte_key() local
1189 EVP_KDF_CTX *kctx; test_kdf_kbkdf_zero_output_size() local
1215 EVP_KDF_CTX *kctx; test_kdf_kbkdf_8009_prf1() local
1255 EVP_KDF_CTX *kctx; test_kdf_kbkdf_8009_prf2() local
1306 EVP_KDF_CTX *kctx; test_kdf_kbkdf_fixedinfo() local
1360 EVP_KDF_CTX *kctx; test_kdf_ss_hmac() local
1401 EVP_KDF_CTX *kctx; test_kdf_ss_kmac() local
1453 EVP_KDF_CTX *kctx; test_kdf_sshkdf() local
1562 EVP_KDF_CTX *kctx = NULL; test_kdf_x942_asn1() local
1598 EVP_KDF_CTX *kctx; test_kdf_krb5kdf() local
[all...]
/third_party/node/deps/openssl/openssl/providers/implementations/macs/
H A Dkmac_prov.c146 struct kmac_data_st *kctx = vmacctx; in kmac_free() local
148 if (kctx != NULL) { in kmac_free()
149 EVP_MD_CTX_free(kctx->ctx); in kmac_free()
150 ossl_prov_digest_reset(&kctx->digest); in kmac_free()
151 OPENSSL_cleanse(kctx->key, kctx->key_len); in kmac_free()
152 OPENSSL_cleanse(kctx->custom, kctx->custom_len); in kmac_free()
153 OPENSSL_free(kctx); in kmac_free()
164 struct kmac_data_st *kctx; in kmac_new() local
180 struct kmac_data_st *kctx = kmac_new(provctx); kmac_fetch_new() local
242 kmac_setkey(struct kmac_data_st *kctx, const unsigned char *key, size_t keylen) kmac_setkey() argument
270 struct kmac_data_st *kctx = vmacctx; kmac_init() local
328 struct kmac_data_st *kctx = vmacctx; kmac_update() local
336 struct kmac_data_st *kctx = vmacctx; kmac_final() local
368 struct kmac_data_st *kctx = vmacctx; kmac_get_ctx_params() local
409 struct kmac_data_st *kctx = vmacctx; kmac_set_ctx_params() local
[all...]
/third_party/openssl/providers/implementations/macs/
H A Dkmac_prov.c146 struct kmac_data_st *kctx = vmacctx; in kmac_free() local
148 if (kctx != NULL) { in kmac_free()
149 EVP_MD_CTX_free(kctx->ctx); in kmac_free()
150 ossl_prov_digest_reset(&kctx->digest); in kmac_free()
151 OPENSSL_cleanse(kctx->key, kctx->key_len); in kmac_free()
152 OPENSSL_cleanse(kctx->custom, kctx->custom_len); in kmac_free()
153 OPENSSL_free(kctx); in kmac_free()
164 struct kmac_data_st *kctx; in kmac_new() local
180 struct kmac_data_st *kctx = kmac_new(provctx); kmac_fetch_new() local
242 kmac_setkey(struct kmac_data_st *kctx, const unsigned char *key, size_t keylen) kmac_setkey() argument
270 struct kmac_data_st *kctx = vmacctx; kmac_init() local
328 struct kmac_data_st *kctx = vmacctx; kmac_update() local
336 struct kmac_data_st *kctx = vmacctx; kmac_final() local
368 struct kmac_data_st *kctx = vmacctx; kmac_get_ctx_params() local
409 struct kmac_data_st *kctx = vmacctx; kmac_set_ctx_params() local
[all...]
/third_party/node/deps/openssl/openssl/crypto/evp/
H A Dpbe_scrypt.c46 EVP_KDF_CTX *kctx; in EVP_PBE_scrypt_ex() local
68 kctx = EVP_KDF_CTX_new(kdf); in EVP_PBE_scrypt_ex()
70 if (kctx == NULL) in EVP_PBE_scrypt_ex()
83 if (EVP_KDF_derive(kctx, key, keylen, params) != 1) in EVP_PBE_scrypt_ex()
86 EVP_KDF_CTX_free(kctx); in EVP_PBE_scrypt_ex()
H A Dp5_crpt.c40 EVP_KDF_CTX *kctx = NULL; in PKCS5_PBE_keyivgen_ex() local
85 kctx = EVP_KDF_CTX_new(kdf); in PKCS5_PBE_keyivgen_ex()
87 if (kctx == NULL) in PKCS5_PBE_keyivgen_ex()
97 if (EVP_KDF_derive(kctx, md_tmp, mdsize, params) != 1) in PKCS5_PBE_keyivgen_ex()
108 EVP_KDF_CTX_free(kctx); in PKCS5_PBE_keyivgen_ex()
H A Dp5_crpt2.c30 EVP_KDF_CTX *kctx; in ossl_pkcs5_pbkdf2_hmac_ex() local
47 kctx = EVP_KDF_CTX_new(kdf); in ossl_pkcs5_pbkdf2_hmac_ex()
49 if (kctx == NULL) in ossl_pkcs5_pbkdf2_hmac_ex()
60 if (EVP_KDF_derive(kctx, out, keylen, params) != 1) in ossl_pkcs5_pbkdf2_hmac_ex()
63 EVP_KDF_CTX_free(kctx); in ossl_pkcs5_pbkdf2_hmac_ex()
/third_party/node/deps/openssl/openssl/crypto/dh/
H A Ddh_kdf.c36 EVP_KDF_CTX *kctx = NULL; in ossl_dh_kdf_X9_42_asn1() local
44 kctx = EVP_KDF_CTX_new(kdf); in ossl_dh_kdf_X9_42_asn1()
45 if (kctx == NULL) in ossl_dh_kdf_X9_42_asn1()
58 ret = EVP_KDF_derive(kctx, out, outlen, params) > 0; in ossl_dh_kdf_X9_42_asn1()
60 EVP_KDF_CTX_free(kctx); in ossl_dh_kdf_X9_42_asn1()
/third_party/openssl/crypto/dh/
H A Ddh_kdf.c36 EVP_KDF_CTX *kctx = NULL; in ossl_dh_kdf_X9_42_asn1() local
44 kctx = EVP_KDF_CTX_new(kdf); in ossl_dh_kdf_X9_42_asn1()
45 if (kctx == NULL) in ossl_dh_kdf_X9_42_asn1()
58 ret = EVP_KDF_derive(kctx, out, outlen, params) > 0; in ossl_dh_kdf_X9_42_asn1()
60 EVP_KDF_CTX_free(kctx); in ossl_dh_kdf_X9_42_asn1()
/third_party/openssl/crypto/evp/
H A Dpbe_scrypt.c46 EVP_KDF_CTX *kctx; in EVP_PBE_scrypt_ex() local
68 kctx = EVP_KDF_CTX_new(kdf); in EVP_PBE_scrypt_ex()
70 if (kctx == NULL) in EVP_PBE_scrypt_ex()
83 if (EVP_KDF_derive(kctx, key, keylen, params) != 1) in EVP_PBE_scrypt_ex()
86 EVP_KDF_CTX_free(kctx); in EVP_PBE_scrypt_ex()
H A Dp5_crpt.c40 EVP_KDF_CTX *kctx = NULL; in PKCS5_PBE_keyivgen_ex() local
85 kctx = EVP_KDF_CTX_new(kdf); in PKCS5_PBE_keyivgen_ex()
87 if (kctx == NULL) in PKCS5_PBE_keyivgen_ex()
97 if (EVP_KDF_derive(kctx, md_tmp, mdsize, params) != 1) in PKCS5_PBE_keyivgen_ex()
108 EVP_KDF_CTX_free(kctx); in PKCS5_PBE_keyivgen_ex()
H A Dp5_crpt2.c30 EVP_KDF_CTX *kctx; in ossl_pkcs5_pbkdf2_hmac_ex() local
47 kctx = EVP_KDF_CTX_new(kdf); in ossl_pkcs5_pbkdf2_hmac_ex()
49 if (kctx == NULL) in ossl_pkcs5_pbkdf2_hmac_ex()
60 if (EVP_KDF_derive(kctx, out, keylen, params) != 1) in ossl_pkcs5_pbkdf2_hmac_ex()
63 EVP_KDF_CTX_free(kctx); in ossl_pkcs5_pbkdf2_hmac_ex()
/third_party/node/deps/openssl/openssl/crypto/ec/
H A Decdh_kdf.c31 EVP_KDF_CTX *kctx = NULL; in ossl_ecdh_kdf_X9_63() local
36 if ((kctx = EVP_KDF_CTX_new(kdf)) != NULL) { in ossl_ecdh_kdf_X9_63()
45 ret = EVP_KDF_derive(kctx, out, outlen, params) > 0; in ossl_ecdh_kdf_X9_63()
46 EVP_KDF_CTX_free(kctx); in ossl_ecdh_kdf_X9_63()
/third_party/openssl/crypto/ec/
H A Decdh_kdf.c31 EVP_KDF_CTX *kctx = NULL; in ossl_ecdh_kdf_X9_63() local
36 if ((kctx = EVP_KDF_CTX_new(kdf)) != NULL) { in ossl_ecdh_kdf_X9_63()
45 ret = EVP_KDF_derive(kctx, out, outlen, params) > 0; in ossl_ecdh_kdf_X9_63()
46 EVP_KDF_CTX_free(kctx); in ossl_ecdh_kdf_X9_63()
/third_party/openssl/demos/kdf/
H A Dscrypt.c64 EVP_KDF_CTX *kctx = NULL; in main() local
83 kctx = EVP_KDF_CTX_new(kdf); in main()
84 if (kctx == NULL) { in main()
104 if (EVP_KDF_derive(kctx, out, sizeof(out), params) != 1) { in main()
116 EVP_KDF_CTX_free(kctx); in main()
H A Dpbkdf2.c62 EVP_KDF_CTX *kctx = NULL; in main() local
81 kctx = EVP_KDF_CTX_new(kdf); in main()
82 if (kctx == NULL) { in main()
101 if (EVP_KDF_derive(kctx, out, sizeof(out), params) != 1) { in main()
113 EVP_KDF_CTX_free(kctx); in main()
H A Dhkdf.c48 EVP_KDF_CTX *kctx = NULL; in main() local
67 kctx = EVP_KDF_CTX_new(kdf); in main()
68 if (kctx == NULL) { in main()
88 if (EVP_KDF_derive(kctx, out, sizeof(out), params) != 1) { in main()
100 EVP_KDF_CTX_free(kctx); in main()
/third_party/openssl/ssl/
H A Dtls13_enc.c41 EVP_KDF_CTX *kctx; in tls13_hkdf_expand() local
48 kctx = EVP_KDF_CTX_new(kdf); in tls13_hkdf_expand()
50 if (kctx == NULL) in tls13_hkdf_expand()
63 EVP_KDF_CTX_free(kctx); in tls13_hkdf_expand()
68 EVP_KDF_CTX_free(kctx); in tls13_hkdf_expand()
93 ret = EVP_KDF_derive(kctx, out, outlen, params) <= 0; in tls13_hkdf_expand()
94 EVP_KDF_CTX_free(kctx); in tls13_hkdf_expand()
169 EVP_KDF_CTX *kctx; in tls13_generate_secret() local
180 kctx = EVP_KDF_CTX_new(kdf); in tls13_generate_secret()
182 if (kctx in tls13_generate_secret()
[all...]
H A Dt1_enc.c36 EVP_KDF_CTX *kctx = NULL; in tls1_PRF() local
51 kctx = EVP_KDF_CTX_new(kdf); in tls1_PRF()
53 if (kctx == NULL) in tls1_PRF()
72 if (EVP_KDF_derive(kctx, out, olen, params)) { in tls1_PRF()
73 EVP_KDF_CTX_free(kctx); in tls1_PRF()
82 EVP_KDF_CTX_free(kctx); in tls1_PRF()
/third_party/node/deps/ngtcp2/ngtcp2/crypto/openssl/
H A Dopenssl.c331 EVP_KDF_CTX *kctx = EVP_KDF_CTX_new(kdf); in ngtcp2_crypto_hkdf_extract() local
347 if (EVP_KDF_derive(kctx, dest, (size_t)EVP_MD_size(prf), params) <= 0) { in ngtcp2_crypto_hkdf_extract()
351 EVP_KDF_CTX_free(kctx); in ngtcp2_crypto_hkdf_extract()
386 EVP_KDF_CTX *kctx = EVP_KDF_CTX_new(kdf); in ngtcp2_crypto_hkdf_expand() local
402 if (EVP_KDF_derive(kctx, dest, destlen, params) <= 0) { in ngtcp2_crypto_hkdf_expand()
406 EVP_KDF_CTX_free(kctx); in ngtcp2_crypto_hkdf_expand()
440 EVP_KDF_CTX *kctx = EVP_KDF_CTX_new(kdf); in ngtcp2_crypto_hkdf() local
456 if (EVP_KDF_derive(kctx, dest, destlen, params) <= 0) { in ngtcp2_crypto_hkdf()
460 EVP_KDF_CTX_free(kctx); in ngtcp2_crypto_hkdf()
/third_party/node/deps/openssl/openssl/ssl/
H A Dtls13_enc.c41 EVP_KDF_CTX *kctx; in tls13_hkdf_expand() local
48 kctx = EVP_KDF_CTX_new(kdf); in tls13_hkdf_expand()
50 if (kctx == NULL) in tls13_hkdf_expand()
63 EVP_KDF_CTX_free(kctx); in tls13_hkdf_expand()
68 EVP_KDF_CTX_free(kctx); in tls13_hkdf_expand()
93 ret = EVP_KDF_derive(kctx, out, outlen, params) <= 0; in tls13_hkdf_expand()
94 EVP_KDF_CTX_free(kctx); in tls13_hkdf_expand()
169 EVP_KDF_CTX *kctx; in tls13_generate_secret() local
180 kctx = EVP_KDF_CTX_new(kdf); in tls13_generate_secret()
182 if (kctx in tls13_generate_secret()
[all...]
H A Dt1_enc.c36 EVP_KDF_CTX *kctx = NULL; in tls1_PRF() local
51 kctx = EVP_KDF_CTX_new(kdf); in tls1_PRF()
53 if (kctx == NULL) in tls1_PRF()
72 if (EVP_KDF_derive(kctx, out, olen, params)) { in tls1_PRF()
73 EVP_KDF_CTX_free(kctx); in tls1_PRF()
82 EVP_KDF_CTX_free(kctx); in tls1_PRF()
/third_party/node/deps/openssl/openssl/include/openssl/
H A Dcore_dispatch.h420 OSSL_CORE_MAKE_FUNC(void, kdf_freectx, (void *kctx))
421 OSSL_CORE_MAKE_FUNC(void, kdf_reset, (void *kctx))
422 OSSL_CORE_MAKE_FUNC(int, kdf_derive, (void *kctx, unsigned char *key,
426 (void *kctx, void *provctx))
428 (void *kctx, void *provctx))
431 (void *kctx, OSSL_PARAM params[]))
433 (void *kctx, const OSSL_PARAM params[]))
/third_party/openssl/include/openssl/
H A Dcore_dispatch.h420 OSSL_CORE_MAKE_FUNC(void, kdf_freectx, (void *kctx))
421 OSSL_CORE_MAKE_FUNC(void, kdf_reset, (void *kctx))
422 OSSL_CORE_MAKE_FUNC(int, kdf_derive, (void *kctx, unsigned char *key,
426 (void *kctx, void *provctx))
428 (void *kctx, void *provctx))
431 (void *kctx, OSSL_PARAM params[]))
433 (void *kctx, const OSSL_PARAM params[]))
/third_party/node/deps/openssl/openssl/providers/fips/
H A Dself_test_kats.c445 EVP_PKEY_CTX *sctx = NULL, *kctx = NULL; in self_test_sign() local
475 kctx = EVP_PKEY_CTX_new_from_name(libctx, t->algorithm, ""); in self_test_sign()
476 if (kctx == NULL || params == NULL) in self_test_sign()
478 if (EVP_PKEY_fromdata_init(kctx) <= 0 in self_test_sign()
479 || EVP_PKEY_fromdata(kctx, &pkey, EVP_PKEY_KEYPAIR, params) <= 0) in self_test_sign()
518 EVP_PKEY_CTX_free(kctx); in self_test_sign()
/third_party/openssl/providers/fips/
H A Dself_test_kats.c445 EVP_PKEY_CTX *sctx = NULL, *kctx = NULL; in self_test_sign() local
475 kctx = EVP_PKEY_CTX_new_from_name(libctx, t->algorithm, ""); in self_test_sign()
476 if (kctx == NULL || params == NULL) in self_test_sign()
478 if (EVP_PKEY_fromdata_init(kctx) <= 0 in self_test_sign()
479 || EVP_PKEY_fromdata(kctx, &pkey, EVP_PKEY_KEYPAIR, params) <= 0) in self_test_sign()
518 EVP_PKEY_CTX_free(kctx); in self_test_sign()

Completed in 19 milliseconds

12