Searched refs:kctx (Results 1 – 8 of 8) sorted by relevance
/third_party/openssl/crypto/kdf/ |
D | hkdf.c | 49 HKDF_PKEY_CTX *kctx; in pkey_hkdf_init() local 51 if ((kctx = OPENSSL_zalloc(sizeof(*kctx))) == NULL) { in pkey_hkdf_init() 56 ctx->data = kctx; in pkey_hkdf_init() 63 HKDF_PKEY_CTX *kctx = ctx->data; in pkey_hkdf_cleanup() local 64 OPENSSL_clear_free(kctx->salt, kctx->salt_len); in pkey_hkdf_cleanup() 65 OPENSSL_clear_free(kctx->key, kctx->key_len); in pkey_hkdf_cleanup() 66 OPENSSL_cleanse(kctx->info, kctx->info_len); in pkey_hkdf_cleanup() 67 OPENSSL_free(kctx); in pkey_hkdf_cleanup() 72 HKDF_PKEY_CTX *kctx = ctx->data; in pkey_hkdf_ctrl() local 79 kctx->md = p2; in pkey_hkdf_ctrl() [all …]
|
D | scrypt.c | 58 SCRYPT_PKEY_CTX *kctx; in pkey_scrypt_init() local 60 kctx = OPENSSL_zalloc(sizeof(*kctx)); in pkey_scrypt_init() 61 if (kctx == NULL) { in pkey_scrypt_init() 70 kctx->N = 1 << 20; in pkey_scrypt_init() 71 kctx->r = 8; in pkey_scrypt_init() 72 kctx->p = 1; in pkey_scrypt_init() 73 kctx->maxmem_bytes = 1025 * 1024 * 1024; in pkey_scrypt_init() 75 ctx->data = kctx; in pkey_scrypt_init() 82 SCRYPT_PKEY_CTX *kctx = ctx->data; in pkey_scrypt_cleanup() local 84 OPENSSL_clear_free(kctx->salt, kctx->salt_len); in pkey_scrypt_cleanup() [all …]
|
D | tls1_prf.c | 38 TLS1_PRF_PKEY_CTX *kctx; in pkey_tls1_prf_init() local 40 if ((kctx = OPENSSL_zalloc(sizeof(*kctx))) == NULL) { in pkey_tls1_prf_init() 44 ctx->data = kctx; in pkey_tls1_prf_init() 51 TLS1_PRF_PKEY_CTX *kctx = ctx->data; in pkey_tls1_prf_cleanup() local 52 OPENSSL_clear_free(kctx->sec, kctx->seclen); in pkey_tls1_prf_cleanup() 53 OPENSSL_cleanse(kctx->seed, kctx->seedlen); in pkey_tls1_prf_cleanup() 54 OPENSSL_free(kctx); in pkey_tls1_prf_cleanup() 59 TLS1_PRF_PKEY_CTX *kctx = ctx->data; in pkey_tls1_prf_ctrl() local 62 kctx->md = p2; in pkey_tls1_prf_ctrl() 68 if (kctx->sec != NULL) in pkey_tls1_prf_ctrl() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
D | crypto_openssl.c | 2062 EVP_PKEY_CTX *kctx = NULL; in crypto_ecdh_init() local 2086 kctx = EVP_PKEY_CTX_new(params, NULL); in crypto_ecdh_init() 2087 if (!kctx) in crypto_ecdh_init() 2090 if (EVP_PKEY_keygen_init(kctx) != 1) { in crypto_ecdh_init() 2097 if (EVP_PKEY_keygen(kctx, &ecdh->pkey) != 1) { in crypto_ecdh_init() 2106 EVP_PKEY_CTX_free(kctx); in crypto_ecdh_init() 2477 EVP_PKEY_CTX *kctx = NULL; in crypto_ec_key_gen() local 2502 kctx = EVP_PKEY_CTX_new(params, NULL); in crypto_ec_key_gen() 2503 if (!kctx || in crypto_ec_key_gen() 2504 EVP_PKEY_keygen_init(kctx) != 1 || in crypto_ec_key_gen() [all …]
|
/third_party/openssl/test/ |
D | evp_extra_test.c | 1268 EVP_PKEY_CTX *kctx = NULL; in test_EVP_SM2() local 1297 kctx = EVP_PKEY_CTX_new(params, NULL); in test_EVP_SM2() 1298 if (!TEST_ptr(kctx)) in test_EVP_SM2() 1301 if (!TEST_true(EVP_PKEY_keygen_init(kctx))) in test_EVP_SM2() 1304 if (!TEST_true(EVP_PKEY_keygen(kctx, &pkey))) in test_EVP_SM2() 1381 EVP_PKEY_CTX_free(kctx); in test_EVP_SM2()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
D | crypto_openssl.c | 1974 EVP_PKEY_CTX *kctx = NULL; in crypto_ecdh_init() local 1998 kctx = EVP_PKEY_CTX_new(params, NULL); in crypto_ecdh_init() 1999 if (!kctx) in crypto_ecdh_init() 2002 if (EVP_PKEY_keygen_init(kctx) != 1) { in crypto_ecdh_init() 2009 if (EVP_PKEY_keygen(kctx, &ecdh->pkey) != 1) { in crypto_ecdh_init() 2018 EVP_PKEY_CTX_free(kctx); in crypto_ecdh_init()
|
/third_party/openssl/apps/ |
D | speed.c | 2941 EVP_PKEY_CTX *kctx = NULL; in speed_main() local 2962 kctx = EVP_PKEY_CTX_new_id(test_curves[testnum].nid, NULL); /* keygen ctx from NID */ in speed_main() 2963 if (!kctx) { in speed_main() 3003 kctx = EVP_PKEY_CTX_new(params, NULL); in speed_main() 3010 if (kctx == NULL || /* keygen ctx is not null */ in speed_main() 3011 EVP_PKEY_keygen_init(kctx) <= 0/* init keygen ctx */ ) { in speed_main() 3019 if (EVP_PKEY_keygen(kctx, &key_A) <= 0 || /* generate secret key A */ in speed_main() 3020 EVP_PKEY_keygen(kctx, &key_B) <= 0 || /* generate secret key B */ in speed_main() 3067 EVP_PKEY_CTX_free(kctx); in speed_main() 3068 kctx = NULL; in speed_main()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/ |
D | dpp.c | 1224 EVP_PKEY_CTX *kctx = NULL; in dpp_gen_keypair() local 1251 kctx = EVP_PKEY_CTX_new(params, NULL); in dpp_gen_keypair() 1252 if (!kctx || in dpp_gen_keypair() 1253 EVP_PKEY_keygen_init(kctx) != 1 || in dpp_gen_keypair() 1254 EVP_PKEY_keygen(kctx, &key) != 1) { in dpp_gen_keypair() 1266 EVP_PKEY_CTX_free(kctx); in dpp_gen_keypair()
|