EVP_PKEY_GET_DEFAULT_DIGEST_NID - Online Linux Manual PageSection : 3ossl
Updated : 2022-03-15
Source : 3.0.2
Note : OpenSSL

NAMEEVP_PKEY_get_default_digest_nid, EVP_PKEY_get_default_digest_name ​− get default signature digest

SYNOPSIS​ #include <openssl/evp.h> ​ ​ int EVP_PKEY_get_default_digest_name(EVP_PKEY *pkey, ​ char *mdname, size_t mdname_sz); ​ int EVP_PKEY_get_default_digest_nid(EVP_PKEY *pkey, int *pnid);

DESCRIPTIONEVP_PKEY_get_default_digest_name() fills in the default message digest name for the public key signature operations associated with key ​pkey into mdname, up to at most mdname_sz bytes including the ending NUL byte. The name could be "UNDEF", signifying that no digest should be used. EVP_PKEY_get_default_digest_nid() sets pnid to the default message digest NID for the public key signature operations associated with key ​pkey. Note that some signature algorithms (i.e. Ed25519 and Ed448) do not use a digest during signing. In this case pnid will be set to NID_undef. This function is only reliable for legacy keys, which are keys with a EVP_PKEY_ASN1_METHOD; these keys have typically been loaded from engines, or created with EVP_PKEY_assign_RSA(3) or similar.

NOTESFor all current standard OpenSSL public key algorithms SHA256 is returned.

RETURN VALUESEVP_PKEY_get_default_digest_name() and EVP_PKEY_get_default_digest_nid() both return 1 if the message digest is advisory (that is other digests can be used) and 2 if it is mandatory (other digests can not be used). They return 0 or a negative value for failure. In particular a return value of −2 indicates the operation is not supported by the public key algorithm.

SEE ALSOEVP_PKEY_CTX_new(3), ​EVP_PKEY_sign(3), ​EVP_PKEY_digestsign_supports_digest(3), ​EVP_PKEY_verify(3), ​EVP_PKEY_verify_recover(3),

HISTORYThis function was added in OpenSSL 1.0.0.

COPYRIGHTCopyright 2006−2021 The OpenSSL Project Authors. All Rights Reserved. Licensed under the Apache License 2.0 (the License). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
0
Johanes Gumabo
Data Size   :   7,782 byte
man-EVP_PKEY_get_default_digest_name.3osslBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   4 / 190,325
Visitor ID   :     :  
Visitor IP   :   18.118.30.153   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|E___VP_PKEY_get_default_digest_name.3ossl|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|E___VP_PKEY_get_default_digest_name.3ossl|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|E___VP_PKEY_get_default_digest_name.3ossl|43|br══─}─══|'br══─}─══ )         (htmlprn|149|E___VP_PKEY_get_default_digest_name.3ossl|43|'br══─}─══ |'br══─}─══ )