Write the default digest name recommended for signing with pkey.
Synopsis
Declared in <openssl/evp.h>
int
EVP_PKEY_get_default_digest_name(
EVP_PKEY* pkey,
char* mdname,
size_t mdname_sz);
Return Value
1 if a default digest is required, 2 if any digest is allowed, or a negative/zero value on error.
Parameters
Name |
Description |
pkey |
Key whose signature defaults are queried. |
mdname |
Output buffer receiving a NUL‐terminated digest name (for example "SHA256"). |
mdname_sz |
Capacity of |
Created with MrDocs