Lines Matching refs:pctx
223 EVP_PKEY_CTX *pctx = NULL; in es256_sk_create() local
232 if ((pctx = EVP_PKEY_CTX_new_id(EVP_PKEY_EC, NULL)) == NULL || in es256_sk_create()
233 EVP_PKEY_paramgen_init(pctx) <= 0 || in es256_sk_create()
234 EVP_PKEY_CTX_set_ec_paramgen_curve_nid(pctx, es256_nid) <= 0 || in es256_sk_create()
235 EVP_PKEY_paramgen(pctx, &p) <= 0) { in es256_sk_create()
260 if (pctx != NULL) in es256_sk_create()
261 EVP_PKEY_CTX_free(pctx); in es256_sk_create()
500 EVP_PKEY_CTX *pctx = NULL; in es256_verify_sig() local
508 if ((pctx = EVP_PKEY_CTX_new(pkey, NULL)) == NULL || in es256_verify_sig()
509 EVP_PKEY_verify_init(pctx) != 1 || in es256_verify_sig()
510 EVP_PKEY_verify(pctx, sig->ptr, sig->len, dgst->ptr, in es256_verify_sig()
518 EVP_PKEY_CTX_free(pctx); in es256_verify_sig()