Skip to main content

extract_spki_algorithm_oid

Function extract_spki_algorithm_oid 

Source
pub fn extract_spki_algorithm_oid(spki_der: &[u8]) -> Result<&[u8], Error>
Expand description

Extract the algorithm OID from a SubjectPublicKeyInfo DER blob.

This is the OID inside the AlgorithmIdentifier, e.g. 1.2.840.10045.2.1 for EC public keys or 1.3.101.112 for Ed25519.