5 EVP_PKEY_copy_parameters, EVP_PKEY_missing_parameters, EVP_PKEY_cmp_parameters, EVP_PKEY_cmp - public key parameter and comparison functions
9 #include <openssl/evp.h>
11 int EVP_PKEY_missing_parameters(const EVP_PKEY *pkey);
12 int EVP_PKEY_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from);
14 int EVP_PKEY_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b);
15 int EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b);
19 The function EVP_PKEY_missing_parameters() returns 1 if the public key
20 parameters of B<pkey> are missing and 0 if they are present or the algorithm
21 doesn't use parameters.
23 The function EVP_PKEY_copy_parameters() copies the parameters from key
26 The function EVP_PKEY_cmp_parameters() compares the parameters of keys
29 The function EVP_PKEY_cmp() compares the public key components and paramters
30 (if present) of keys B<a> and B<b>.
34 The main purpose of the functions EVP_PKEY_missing_parameters() and
35 EVP_PKEY_copy_parameters() is to handle public keys in certificates where the
36 parameters are sometimes omitted from a public key if they are inherited from
37 the CA that signed it.
39 Since OpenSSL private keys contain public key components too the function
40 EVP_PKEY_cmp() can also be used to determine if a private key matches
45 The function EVP_PKEY_missing_parameters() returns 1 if the public key
46 parameters of B<pkey> are missing and 0 if they are present or the algorithm
47 doesn't use parameters.
49 These functions EVP_PKEY_copy_parameters() returns 1 for success and 0 for
52 The function EVP_PKEY_cmp_parameters() and EVP_PKEY_cmp() return 1 if the
53 keys match, 0 if they don't match, -1 if the key types are different and
54 -2 if the operation is not supported.
58 L<EVP_PKEY_CTX_new(3)|EVP_PKEY_CTX_new(3)>,
59 L<EVP_PKEY_keygen(3)|EVP_PKEY_keygen(3)>