hasher: Add filter function for algorithms permitted by RFC 7427
This commit is contained in:
@@ -162,6 +162,14 @@ hash_algorithm_t hasher_algorithm_from_integrity(integrity_algorithm_t alg,
|
||||
integrity_algorithm_t hasher_algorithm_to_integrity(hash_algorithm_t alg,
|
||||
size_t length);
|
||||
|
||||
/**
|
||||
* Check if the given algorithm may be used for IKEv2 signature authentication.
|
||||
*
|
||||
* @param alg hash algorithm
|
||||
* @return TRUE if algorithm may be used, FALSE otherwise
|
||||
*/
|
||||
bool hasher_algorithm_for_ikev2(hash_algorithm_t alg);
|
||||
|
||||
/**
|
||||
* Conversion of hash algorithm into ASN.1 OID.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user