1EVP_PKEY_get_default_digest(3)      OpenSSL     EVP_PKEY_get_default_digest(3)
2
3
4

NAME

6       EVP_PKEY_get_default_digest_nid - get default signature digest
7

SYNOPSIS

9        #include <openssl/evp.h>
10        int EVP_PKEY_get_default_digest_nid(EVP_PKEY *pkey, int *pnid);
11

DESCRIPTION

13       The EVP_PKEY_get_default_digest_nid() function sets pnid to the default
14       message digest NID for the public key signature operations associated
15       with key pkey.
16

NOTES

18       For all current standard OpenSSL public key algorithms SHA1 is
19       returned.
20

RETURN VALUES

22       The EVP_PKEY_get_default_digest_nid() function returns 1 if the message
23       digest is advisory (that is other digests can be used) and 2 if it is
24       mandatory (other digests can not be used).  It returns 0 or a negative
25       value for failure. In particular a return value of -2 indicates the
26       operation is not supported by the public key algorithm.
27

SEE ALSO

29       EVP_PKEY_CTX_new(3), EVP_PKEY_sign(3), EVP_PKEY_verify(3),
30       EVP_PKEY_verifyrecover(3),
31

HISTORY

33       This function was first added to OpenSSL 1.0.0.
34
35
36
371.0.0e                            2009-09-30    EVP_PKEY_get_default_digest(3)
Impressum