Skip to main content

algorithm_for_schemes

Function algorithm_for_schemes 

Source
pub fn algorithm_for_schemes(
    schemes: &[SignatureScheme],
) -> Option<SignatureAlgorithm>
Expand description

Determine the common SignatureAlgorithm for a list of schemes.

Returns None if the list is empty or contains schemes from mixed algorithm families (e.g., both RSA and ECDSA).