pub fn parse_rsa_algorithm_attributes(
attr: &[u8],
) -> Result<RsaAttributes, ParseError>Expand description
Parse the RSA algorithm attributes (01 | n_bits | e_bits | [format]).
The leading byte must be 0x01 (RSA). The format byte is optional: a 5-byte
attribute (no format byte) is treated as RsaImportFormat::Standard, per
the spec and GnuPG. Returns ParseError::UnsupportedAlgorithm for a
non-RSA object, ParseError::UnexpectedLength for a short/garbled one.