Query: evp_pkey_cmp_parameters
OS: centos
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
EVP_PKEY_cmp(3) OpenSSL EVP_PKEY_cmp(3)NAMEEVP_PKEY_copy_parameters, EVP_PKEY_missing_parameters, EVP_PKEY_cmp_parameters, EVP_PKEY_cmp - public key parameter and comparison functionsSYNOPSIS#include <openssl/evp.h> int EVP_PKEY_missing_parameters(const EVP_PKEY *pkey); int EVP_PKEY_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from); int EVP_PKEY_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b); int EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b);DESCRIPTIONThe function EVP_PKEY_missing_parameters() returns 1 if the public key parameters of pkey are missing and 0 if they are present or the algorithm doesn't use parameters. The function EVP_PKEY_copy_parameters() copies the parameters from key from to key to. The funcion EVP_PKEY_cmp_parameters() compares the parameters of keys a and b. The funcion EVP_PKEY_cmp() compares the public key components and paramters (if present) of keys a and b.NOTESThe main purpose of the functions EVP_PKEY_missing_parameters() and EVP_PKEY_copy_parameters() is to handle public keys in certificates where the parameters are sometimes omitted from a public key if they are inherited from the CA that signed it. Since OpenSSL private keys contain public key components too the function EVP_PKEY_cmp() can also be used to determine if a private key matches a public key.RETURN VALUESThe function EVP_PKEY_missing_parameters() returns 1 if the public key parameters of pkey are missing and 0 if they are present or the algorithm doesn't use parameters. These functions EVP_PKEY_copy_parameters() returns 1 for success and 0 for failure. The function EVP_PKEY_cmp_parameters() and EVP_PKEY_cmp() return 1 if the keys match, 0 if they don't match, -1 if the key types are different and -2 if the operation is not supported.SEE ALSOEVP_PKEY_CTX_new(3), EVP_PKEY_keygen(3) 1.0.1e 2013-02-11 EVP_PKEY_cmp(3)
Related Man Pages |
---|
evp_pkey_cmp(3ssl) - debian |
evp_pkey_cmp(3) - centos |
evp_pkey_print_private(3) - centos |
evp_pkey_print_public(3) - centos |
evp_pkey_cmp_parameters(3ssl) - linux |
Similar Topics in the Unix Linux Community |
---|
Host Key verification failed |
AIX 5.3 on p275 - "|" key doesn't work (!) |
Troubles with OpenSSH |
Ssh key doesn't match |
Private and public key encryption |