Searched refs:pkey_ctx (Results 1 – 5 of 5) sorted by relevance
/openssl/demos/signature/ |
H A D | EVP_DSA_Signature_demo.c | 51 EVP_PKEY_CTX *pkey_ctx = NULL; in generate_dsa_params() local 55 if (pkey_ctx == NULL) in generate_dsa_params() 58 if (EVP_PKEY_paramgen_init(pkey_ctx) <= 0) in generate_dsa_params() 74 EVP_PKEY_CTX_free(pkey_ctx); in generate_dsa_params() 171 EVP_PKEY_CTX *pkey_ctx = NULL; in demo_sign() local 175 if (pkey_ctx == NULL) in demo_sign() 177 if (EVP_PKEY_fromdata_init(pkey_ctx) != 1) in demo_sign() 220 EVP_PKEY_CTX_free(pkey_ctx); in demo_sign() 234 EVP_PKEY_CTX *pkey_ctx = NULL; in demo_verify() local 238 if (pkey_ctx == NULL) in demo_verify() [all …]
|
/openssl/test/ |
H A D | acvp_test.c | 136 if (!TEST_true(EVP_PKEY_CTX_get_params(pkey_ctx, params)) in check_verify_message() 307 EVP_PKEY_CTX *pkey_ctx; in ecdsa_sigver_test() local 330 || !check_verify_message(pkey_ctx, 1) in ecdsa_sigver_test() 333 || !check_verify_message(pkey_ctx, 1) in ecdsa_sigver_test() 334 || !TEST_true(EVP_PKEY_verify_init(pkey_ctx)) in ecdsa_sigver_test() 335 || !check_verify_message(pkey_ctx, 0)) in ecdsa_sigver_test() 1450 EVP_PKEY_CTX *pkey_ctx = NULL; in rsa_sigver_test() local 1478 || !check_verify_message(pkey_ctx, 1) in rsa_sigver_test() 1482 || !check_verify_message(pkey_ctx, 1) in rsa_sigver_test() 1483 || !TEST_true(EVP_PKEY_verify_init(pkey_ctx)) in rsa_sigver_test() [all …]
|
H A D | evp_extra_test.c | 4117 EVP_PKEY_CTX *pkey_ctx = NULL; in test_EVP_rsa_pss_set_saltlen() local 4126 && TEST_true(EVP_DigestSignInit(sha256_ctx, &pkey_ctx, sha256, NULL, pkey)) in test_EVP_rsa_pss_set_saltlen() 4127 && TEST_true(EVP_PKEY_CTX_set_rsa_padding(pkey_ctx, RSA_PKCS1_PSS_PADDING)) in test_EVP_rsa_pss_set_saltlen() 4128 && TEST_int_gt(EVP_PKEY_CTX_set_rsa_pss_saltlen(pkey_ctx, test_value), 0) in test_EVP_rsa_pss_set_saltlen() 4129 && TEST_int_gt(EVP_PKEY_CTX_get_rsa_pss_saltlen(pkey_ctx, &saltlen), 0) in test_EVP_rsa_pss_set_saltlen()
|
/openssl/ssl/statem/ |
H A D | statem_clnt.c | 3259 EVP_PKEY_CTX *pkey_ctx = NULL; in tls_construct_cke_gost() local 3285 if (pkey_ctx == NULL) { in tls_construct_cke_gost() 3303 if (EVP_PKEY_encrypt_init(pkey_ctx) <= 0 in tls_construct_cke_gost() 3349 EVP_PKEY_CTX_free(pkey_ctx); in tls_construct_cke_gost() 3355 EVP_PKEY_CTX_free(pkey_ctx); in tls_construct_cke_gost() 3409 EVP_PKEY_CTX *pkey_ctx = NULL; in tls_construct_cke_gost18() local 3450 if (pkey_ctx == NULL) { in tls_construct_cke_gost18() 3455 if (EVP_PKEY_encrypt_init(pkey_ctx) <= 0) { in tls_construct_cke_gost18() 3484 EVP_PKEY_CTX_free(pkey_ctx); in tls_construct_cke_gost18() 3485 pkey_ctx = NULL; in tls_construct_cke_gost18() [all …]
|
H A D | statem_srvr.c | 3205 EVP_PKEY_CTX *pkey_ctx; in tls_process_cke_gost() local 3234 if (pkey_ctx == NULL) { in tls_process_cke_gost() 3238 if (EVP_PKEY_decrypt_init(pkey_ctx) <= 0) { in tls_process_cke_gost() 3278 if (EVP_PKEY_decrypt(pkey_ctx, premaster_secret, &outlen, start, in tls_process_cke_gost() 3295 EVP_PKEY_CTX_free(pkey_ctx); in tls_process_cke_gost() 3309 EVP_PKEY_CTX *pkey_ctx = NULL; in tls_process_cke_gost18() local 3338 if (pkey_ctx == NULL) { in tls_process_cke_gost18() 3342 if (EVP_PKEY_decrypt_init(pkey_ctx) <= 0) { in tls_process_cke_gost18() 3348 if (EVP_PKEY_CTX_ctrl(pkey_ctx, -1, EVP_PKEY_OP_DECRYPT, in tls_process_cke_gost18() 3354 if (EVP_PKEY_CTX_ctrl(pkey_ctx, -1, EVP_PKEY_OP_DECRYPT, in tls_process_cke_gost18() [all …]
|
Completed in 57 milliseconds