hasher: Add helper to determine hash algorithm from signature scheme
This commit is contained in:
@@ -187,4 +187,12 @@ int hasher_algorithm_to_oid(hash_algorithm_t alg);
|
||||
*/
|
||||
int hasher_signature_algorithm_to_oid(hash_algorithm_t alg, key_type_t key);
|
||||
|
||||
/**
|
||||
* Determine the hash algorithm associated with a given signature scheme.
|
||||
*
|
||||
* @param scheme signature scheme
|
||||
* @return hash algorithm (could be HASH_UNKNOWN)
|
||||
*/
|
||||
hash_algorithm_t hasher_from_signature_scheme(signature_scheme_t scheme);
|
||||
|
||||
#endif /** HASHER_H_ @}*/
|
||||
|
||||
Reference in New Issue
Block a user