Lines Matching refs:pkey
20 int EVP_PKEY_get_id(const EVP_PKEY *pkey);
21 int EVP_PKEY_get_base_id(const EVP_PKEY *pkey);
31 int EVP_PKEY_set1_RSA(EVP_PKEY *pkey, RSA *key);
32 int EVP_PKEY_set1_DSA(EVP_PKEY *pkey, DSA *key);
33 int EVP_PKEY_set1_DH(EVP_PKEY *pkey, DH *key);
34 int EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, EC_KEY *key);
36 RSA *EVP_PKEY_get1_RSA(EVP_PKEY *pkey);
37 DSA *EVP_PKEY_get1_DSA(EVP_PKEY *pkey);
38 DH *EVP_PKEY_get1_DH(EVP_PKEY *pkey);
39 EC_KEY *EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey);
41 const unsigned char *EVP_PKEY_get0_hmac(const EVP_PKEY *pkey, size_t *len);
42 const unsigned char *EVP_PKEY_get0_poly1305(const EVP_PKEY *pkey, size_t *len);
43 const unsigned char *EVP_PKEY_get0_siphash(const EVP_PKEY *pkey, size_t *len);
44 const RSA *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey);
45 const DSA *EVP_PKEY_get0_DSA(const EVP_PKEY *pkey);
46 const DH *EVP_PKEY_get0_DH(const EVP_PKEY *pkey);
47 const EC_KEY *EVP_PKEY_get0_EC_KEY(const EVP_PKEY *pkey);
48 void *EVP_PKEY_get0(const EVP_PKEY *pkey);
50 int EVP_PKEY_assign_RSA(EVP_PKEY *pkey, RSA *key);
51 int EVP_PKEY_assign_DSA(EVP_PKEY *pkey, DSA *key);
52 int EVP_PKEY_assign_DH(EVP_PKEY *pkey, DH *key);
53 int EVP_PKEY_assign_EC_KEY(EVP_PKEY *pkey, EC_KEY *key);
54 int EVP_PKEY_assign_POLY1305(EVP_PKEY *pkey, ASN1_OCTET_STRING *key);
55 int EVP_PKEY_assign_SIPHASH(EVP_PKEY *pkey, ASN1_OCTET_STRING *key);
57 ENGINE *EVP_PKEY_get0_engine(const EVP_PKEY *pkey);
58 int EVP_PKEY_set1_engine(EVP_PKEY *pkey, ENGINE *engine);
62 EVP_PKEY_get_base_id() returns the type of I<pkey>. For example
65 EVP_PKEY_get_id() returns the actual NID associated with I<pkey>
66 only if the I<pkey> type isn't implemented just in a L<provider(7)>.
73 EVP_PKEY_get_id() returns -1 (B<EVP_PKEY_KEYMGMT>) if the I<pkey> is
80 EVP_PKEY_set1_EC_KEY() set the key referenced by I<pkey> to I<key>. These
88 I<pkey> is freed. These macros are deprecated. Applications should instead read
94 EVP_PKEY_get1_EC_KEY() return the referenced key in I<pkey> or NULL if the
104 EVP_PKEY_get0_EC_KEY() return the referenced key in I<pkey> or NULL if the
129 EVP_PKEY_get0_engine() returns a reference to the ENGINE handling I<pkey>. This
133 EVP_PKEY_set1_engine() sets the ENGINE handling I<pkey> to I<engine>. It
135 If I<engine> does not include an B<EVP_PKEY_METHOD> for I<pkey> an
165 from or assigned to the I<pkey> using the B<1> functions must be
166 freed as well as I<pkey>.
180 Previous versions of this document suggested using EVP_PKEY_type(pkey->type)
182 is no longer possible: the equivalent is EVP_PKEY_get_base_id(pkey).