Different kinds of decoding keys.
| 47 | #[derive(Clone, Zeroize, ZeroizeOnDrop)] |
| 48 | /// Different kinds of decoding keys. |
| 49 | pub enum DecodingKeyKind { |
| 50 | /// A raw public key. |
| 51 | SecretOrDer(Vec<u8>), |
| 52 | /// RSA public key components. |
| 53 | RsaModulusExponent { |
| 54 | /// The modulus of the public key. |
| 55 | n: Vec<u8>, |
| 56 | /// The exponent of the public key. |
| 57 | e: Vec<u8>, |
| 58 | }, |
| 59 | } |
| 60 | |
| 61 | impl Debug for DecodingKeyKind { |
| 62 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { |
nothing calls this directly
no outgoing calls
no test coverage detected