Home
last modified time | relevance | path

Searched refs:pkey_ctx (Results 1 – 4 of 4) sorted by relevance

/freebsd/crypto/openssl/ssl/statem/
H A Dstatem_clnt.c3016 EVP_PKEY_CTX *pkey_ctx = NULL; in tls_construct_cke_gost() local
3039 pkey_ctx = EVP_PKEY_CTX_new_from_pkey(s->ctx->libctx, in tls_construct_cke_gost()
3042 if (pkey_ctx == NULL) { in tls_construct_cke_gost()
3060 if (EVP_PKEY_encrypt_init(pkey_ctx) <= 0 in tls_construct_cke_gost()
3084 if (EVP_PKEY_CTX_ctrl(pkey_ctx, -1, EVP_PKEY_OP_ENCRYPT, in tls_construct_cke_gost()
3094 if (EVP_PKEY_encrypt(pkey_ctx, tmp, &msglen, pms, pmslen) <= 0) { in tls_construct_cke_gost()
3106 EVP_PKEY_CTX_free(pkey_ctx); in tls_construct_cke_gost()
3112 EVP_PKEY_CTX_free(pkey_ctx); in tls_construct_cke_gost()
3164 EVP_PKEY_CTX *pkey_ctx = NULL; in tls_construct_cke_gost18() local
3202 pkey_ctx = EVP_PKEY_CTX_new_from_pkey(s->ctx->libctx, in tls_construct_cke_gost18()
[all …]
H A Dstatem_srvr.c3103 EVP_PKEY_CTX *pkey_ctx; in tls_process_cke_gost() local
3130 pkey_ctx = EVP_PKEY_CTX_new_from_pkey(s->ctx->libctx, pk, s->ctx->propq); in tls_process_cke_gost()
3131 if (pkey_ctx == NULL) { in tls_process_cke_gost()
3135 if (EVP_PKEY_decrypt_init(pkey_ctx) <= 0) { in tls_process_cke_gost()
3147 if (EVP_PKEY_derive_set_peer(pkey_ctx, client_pub_pkey) <= 0) in tls_process_cke_gost()
3175 if (EVP_PKEY_decrypt(pkey_ctx, premaster_secret, &outlen, start, in tls_process_cke_gost()
3187 if (EVP_PKEY_CTX_ctrl(pkey_ctx, -1, -1, EVP_PKEY_CTRL_PEER_KEY, 2, in tls_process_cke_gost()
3193 EVP_PKEY_CTX_free(pkey_ctx); in tls_process_cke_gost()
3207 EVP_PKEY_CTX *pkey_ctx = NULL; in tls_process_cke_gost18() local
3234 pkey_ctx = EVP_PKEY_CTX_new_from_pkey(s->ctx->libctx, pk, s->ctx->propq); in tls_process_cke_gost18()
[all …]
/freebsd/crypto/openssl/test/
H A Dacvp_test.c1202 EVP_PKEY_CTX *pkey_ctx = NULL; in rsa_sigver_test() local
1227 || !TEST_true(EVP_DigestVerifyInit_ex(md_ctx, &pkey_ctx, in rsa_sigver_test()
1230 || !TEST_true(EVP_PKEY_CTX_set_params(pkey_ctx, params)) in rsa_sigver_test()
H A Devp_extra_test.c3673 EVP_PKEY_CTX *pkey_ctx = NULL; in test_EVP_rsa_pss_set_saltlen() local
3682 && TEST_true(EVP_DigestSignInit(sha256_ctx, &pkey_ctx, sha256, NULL, pkey)) in test_EVP_rsa_pss_set_saltlen()
3683 && TEST_true(EVP_PKEY_CTX_set_rsa_padding(pkey_ctx, RSA_PKCS1_PSS_PADDING)) in test_EVP_rsa_pss_set_saltlen()
3684 && TEST_int_gt(EVP_PKEY_CTX_set_rsa_pss_saltlen(pkey_ctx, test_value), 0) in test_EVP_rsa_pss_set_saltlen()
3685 && TEST_int_gt(EVP_PKEY_CTX_get_rsa_pss_saltlen(pkey_ctx, &saltlen), 0) in test_EVP_rsa_pss_set_saltlen()