Lines Matching refs:pkey
72 EVP_PKEY *pkey = NULL; in pkey_main() local
212 pkey = load_pubkey(infile, informat, 1, passin, e, "Public Key"); in pkey_main()
214 pkey = load_key(infile, informat, 1, passin, e, "key"); in pkey_main()
215 if (pkey == NULL) in pkey_main()
226 if (!EVP_PKEY_is_a(pkey, "EC")) in pkey_main()
237 if (EVP_PKEY_set_params(pkey, params) <= 0) in pkey_main()
245 ctx = EVP_PKEY_CTX_new(pkey, e); in pkey_main()
272 if (!PEM_write_bio_PUBKEY(out, pkey)) in pkey_main()
277 if (!PEM_write_bio_PrivateKey_traditional(out, pkey, cipher, in pkey_main()
282 if (!PEM_write_bio_PrivateKey(out, pkey, cipher, in pkey_main()
294 if (!i2d_PUBKEY_bio(out, pkey)) in pkey_main()
298 if (!i2d_PrivateKey_bio(out, pkey)) in pkey_main()
308 if (EVP_PKEY_print_public(out, pkey, 0, NULL) <= 0) in pkey_main()
312 if (EVP_PKEY_print_private(out, pkey, 0, NULL) <= 0) in pkey_main()
322 EVP_PKEY_free(pkey); in pkey_main()