Botan

Hash Function Identification

License
Botan is released under the Simplified BSD License (see LICENSE.md)

Vector!ubyte  pkcsHashId(in string name);

Return the PKCS #1 hash identifier @see RFC 3447 section 9.2

Parameters
string name the name of the hash function
Returns
ubyte sequence identifying the hash
Throws
$D(InvalidArgument) if the hash has no known PKCS #1 hash id

ubyte  ieee1363HashId(in string name);

Return the IEEE 1363 hash identifier

Parameters
string name the name of the hash function
Returns
ubyte code identifying the hash, or 0 if not known