RSA_X931_hash_id

Return the X9.31 hash algorithm identifier byte for digest NID nid (deprecated).

Synopsis

Declared in <openssl/rsa.h>

[[deprecated]]
int
RSA_X931_hash_id(int nid);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

Hash-ID byte used in X9.31 encoding, or -1 if nid is unsupported.

Parameters

NameDescription
nidDigest NID such as NID_sha1 or NID_sha256.