get_algorithm

Function get_algorithm 

Source
pub fn get_algorithm(cert_der: &[u8]) -> Result<String, KeyError>
Expand description

Parses algorithm from X.509 certificate.

ยงErrors

Returns an KeyError if parsing fails, or if algorithm is unsupported.