Lines Matching refs:pkey
32 EVP_PKEY *pkey = NULL; in load_key() local
46 dctx = OSSL_DECODER_CTX_new_for_pkey(&pkey, "PEM", NULL, "EC", in load_key()
88 EVP_PKEY_free(pkey); in load_key()
89 pkey = NULL; in load_key()
92 return pkey; in load_key()
101 static int store_key(EVP_PKEY *pkey, FILE *f, const char *passphrase) in store_key() argument
125 ectx = OSSL_ENCODER_CTX_new_for_pkey(pkey, selection, "PEM", NULL, propq); in store_key()
178 EVP_PKEY *pkey = NULL; in main() local
189 pkey = load_key(libctx, stdin, passphrase_in); in main()
190 if (pkey == NULL) { in main()
195 if (store_key(pkey, stdout, passphrase_out) == 0) { in main()
202 EVP_PKEY_free(pkey); in main()