(key: &[u8])
| 168 | /// Note: Ed448 keys are not supported |
| 169 | #[cfg(feature = "use_pem")] |
| 170 | pub fn from_ed_pem(key: &[u8]) -> Result<Self> { |
| 171 | let pem_key = PemEncodedKey::new(key)?; |
| 172 | let content = pem_key.as_ed_public_key()?; |
| 173 | Ok(DecodingKey { |
| 174 | family: AlgorithmFamily::Ed, |
| 175 | kind: DecodingKeyKind::SecretOrDer(content.to_vec()), |
| 176 | }) |
| 177 | } |
| 178 | |
| 179 | /// If you know what you're doing and have a RSA DER encoded public key, use this. |
| 180 | pub fn from_rsa_der(der: &[u8]) -> Self { |
nothing calls this directly
no test coverage detected