/// Parses a DER-wrapped public key, and returns the
/// PkixAlgorithmIdentifier and the public key.
///
/// See [RFC 8410](https://tools.ietf.org/html/rfc8410#section-4).
///
/// # Returns
/// The `PkixAlgorithmIdentifier` and public key bytes
///
/// # Errors:
/// * `KeyDerParsingError` if:
///   - `pk_der` is malformed ASN.1
///   - `pk_der` is *not* the expected ASN.1 structure
Parses a DER-wrapped public key, and returns the
PkixAlgorithmIdentifier and the public key.


Parses a DER - wrapped public key and returns the PkixAlgorithmIdentifier and the public key .
pub fn algo_id_and_public_key_bytes_from_der(
    der: &[u8],
) -> Result<(PkixAlgorithmIdentifier, Vec<u8>), KeyDerParsingError> {
    let kp = KeyDerParser::new(der);
    kp.get_algo_id_and_public_key_bytes()
}
pub fn algo_id_and_public_key_bytes_from_der ( der : & [ u8 ] , ) -> Result < ( PkixAlgorithmIdentifier , Vec < u8 > ) , KeyDerParsingError > { let kp = KeyDerParser :: new ( der ) ; kp . get_algo_id_and_public_key_bytes ( ) }
Parses a DER-wrapped public key, and returns the
PkixAlgorithmIdentifier and the public key.
Parses a DER - wrapped public key and returns the PkixAlgorithmIdentifier and the public key .
The `PkixAlgorithmIdentifier` and public key bytes
The ` PkixAlgorithmIdentifier ` and public key bytes
der
&[u8]
errors:
`KeyDerParsingError` if:
`pk_der` is malformed ASN.1
`pk_der` is *not* the expected ASN.1 structure
` KeyDerParsingError ` if : ` pk_der ` is malformed ASN . 1 ` pk_der ` is * not * the expected ASN . 1 structure