/third_party/openssl/ssl/statem/ |
D | statem_clnt.c | 3016 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 …]
|
D | statem_srvr.c | 3104 EVP_PKEY_CTX *pkey_ctx; in tls_process_cke_gost() local 3131 pkey_ctx = EVP_PKEY_CTX_new_from_pkey(s->ctx->libctx, pk, s->ctx->propq); in tls_process_cke_gost() 3132 if (pkey_ctx == NULL) { in tls_process_cke_gost() 3136 if (EVP_PKEY_decrypt_init(pkey_ctx) <= 0) { in tls_process_cke_gost() 3148 if (EVP_PKEY_derive_set_peer(pkey_ctx, client_pub_pkey) <= 0) in tls_process_cke_gost() 3176 if (EVP_PKEY_decrypt(pkey_ctx, premaster_secret, &outlen, start, in tls_process_cke_gost() 3188 if (EVP_PKEY_CTX_ctrl(pkey_ctx, -1, -1, EVP_PKEY_CTRL_PEER_KEY, 2, in tls_process_cke_gost() 3194 EVP_PKEY_CTX_free(pkey_ctx); in tls_process_cke_gost() 3208 EVP_PKEY_CTX *pkey_ctx = NULL; in tls_process_cke_gost18() local 3235 pkey_ctx = EVP_PKEY_CTX_new_from_pkey(s->ctx->libctx, pk, s->ctx->propq); in tls_process_cke_gost18() [all …]
|
/third_party/node/deps/openssl/openssl/ssl/statem/ |
D | statem_clnt.c | 3024 EVP_PKEY_CTX *pkey_ctx = NULL; in tls_construct_cke_gost() local 3047 pkey_ctx = EVP_PKEY_CTX_new_from_pkey(s->ctx->libctx, in tls_construct_cke_gost() 3050 if (pkey_ctx == NULL) { in tls_construct_cke_gost() 3068 if (EVP_PKEY_encrypt_init(pkey_ctx) <= 0 in tls_construct_cke_gost() 3092 if (EVP_PKEY_CTX_ctrl(pkey_ctx, -1, EVP_PKEY_OP_ENCRYPT, in tls_construct_cke_gost() 3102 if (EVP_PKEY_encrypt(pkey_ctx, tmp, &msglen, pms, pmslen) <= 0) { in tls_construct_cke_gost() 3114 EVP_PKEY_CTX_free(pkey_ctx); in tls_construct_cke_gost() 3120 EVP_PKEY_CTX_free(pkey_ctx); in tls_construct_cke_gost() 3172 EVP_PKEY_CTX *pkey_ctx = NULL; in tls_construct_cke_gost18() local 3210 pkey_ctx = EVP_PKEY_CTX_new_from_pkey(s->ctx->libctx, in tls_construct_cke_gost18() [all …]
|
D | statem_srvr.c | 3124 EVP_PKEY_CTX *pkey_ctx; in tls_process_cke_gost() local 3151 pkey_ctx = EVP_PKEY_CTX_new_from_pkey(s->ctx->libctx, pk, s->ctx->propq); in tls_process_cke_gost() 3152 if (pkey_ctx == NULL) { in tls_process_cke_gost() 3156 if (EVP_PKEY_decrypt_init(pkey_ctx) <= 0) { in tls_process_cke_gost() 3168 if (EVP_PKEY_derive_set_peer(pkey_ctx, client_pub_pkey) <= 0) in tls_process_cke_gost() 3196 if (EVP_PKEY_decrypt(pkey_ctx, premaster_secret, &outlen, start, in tls_process_cke_gost() 3208 if (EVP_PKEY_CTX_ctrl(pkey_ctx, -1, -1, EVP_PKEY_CTRL_PEER_KEY, 2, in tls_process_cke_gost() 3214 EVP_PKEY_CTX_free(pkey_ctx); in tls_process_cke_gost() 3228 EVP_PKEY_CTX *pkey_ctx = NULL; in tls_process_cke_gost18() local 3255 pkey_ctx = EVP_PKEY_CTX_new_from_pkey(s->ctx->libctx, pk, s->ctx->propq); in tls_process_cke_gost18() [all …]
|
/third_party/rust/crates/rust-openssl/openssl/src/ |
D | lib.rs | 173 pub mod pkey_ctx; module
|
D | md_ctx.rs | 87 use crate::pkey_ctx::PkeyCtxRef;
|
D | pkey.rs | 51 use crate::pkey_ctx::PkeyCtx;
|
/third_party/openssl/test/ |
D | acvp_test.c | 1202 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()
|
D | evp_extra_test.c | 3498 EVP_PKEY_CTX *pkey_ctx = NULL; in test_EVP_rsa_pss_set_saltlen() local 3507 && TEST_true(EVP_DigestSignInit(sha256_ctx, &pkey_ctx, sha256, NULL, pkey)) in test_EVP_rsa_pss_set_saltlen() 3508 && TEST_true(EVP_PKEY_CTX_set_rsa_padding(pkey_ctx, RSA_PKCS1_PSS_PADDING)) in test_EVP_rsa_pss_set_saltlen() 3509 && TEST_int_gt(EVP_PKEY_CTX_set_rsa_pss_saltlen(pkey_ctx, test_value), 0) in test_EVP_rsa_pss_set_saltlen() 3510 && TEST_int_gt(EVP_PKEY_CTX_get_rsa_pss_saltlen(pkey_ctx, &saltlen), 0) in test_EVP_rsa_pss_set_saltlen()
|