If you know what you're doing and have a EC DER encoded public key, use this.
(der: &[u8])
| 186 | |
| 187 | /// If you know what you're doing and have a EC DER encoded public key, use this. |
| 188 | pub fn from_ec_der(der: &[u8]) -> Self { |
| 189 | DecodingKey { |
| 190 | family: AlgorithmFamily::Ec, |
| 191 | kind: DecodingKeyKind::SecretOrDer(der.to_vec()), |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | /// If you know what you're doing and have a Ed DER encoded public key, use this. |
| 196 | pub fn from_ed_der(der: &[u8]) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected