Lines Matching defs:pkey
92 static int try_legacy_encoding(EVP_PKEY *pkey, int outformat, int pubout,
97 const RSA *rsa = EVP_PKEY_get0_RSA(pkey);
114 ret = i2b_PublicKey_bio(out, pkey) > 0;
126 EVP_PKEY *pkey = NULL;
251 pkey = load_pubkey(infile, tmpformat, 1, passin, e, "public key");
253 pkey = load_key(infile, informat, 1, passin, e, "private key");
256 if (pkey == NULL) {
260 if (!EVP_PKEY_is_a(pkey, "RSA") && !EVP_PKEY_is_a(pkey, "RSA-PSS")) {
271 if ((pubin && EVP_PKEY_print_public(out, pkey, 0, NULL) <= 0)
272 || (!pubin && EVP_PKEY_print_private(out, pkey, 0, NULL) <= 0)) {
283 EVP_PKEY_get_bn_param(pkey, "n", &n);
293 pctx = EVP_PKEY_CTX_new_from_pkey(NULL, pkey, NULL);
363 ectx = OSSL_ENCODER_CTX_new_for_pkey(pkey, selection,
368 || !try_legacy_encoding(pkey, outformat, pubout, out))
410 EVP_PKEY_free(pkey);