This commit is contained in:
Vincent Prouillet 2021-11-19 20:06:45 +01:00
parent 7301e928b0
commit bebeb5f222
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ macro_rules! expect_two {
}};
}
#[derive(Debug, Clone, PartialEq)]
#[derive(Clone)]
pub(crate) enum DecodingKeyKind {
SecretOrDer(Vec<u8>),
RsaModulusExponent { n: Vec<u8>, e: Vec<u8> },
@ -37,7 +37,7 @@ pub(crate) enum DecodingKeyKind {
/// All the different kind of keys we can use to decode a JWT
/// This key can be re-used so make sure you only initialize it once if you can for better performance
#[derive(Debug, Clone, PartialEq)]
#[derive(Clone)]
pub struct DecodingKey {
pub(crate) family: AlgorithmFamily,
pub(crate) kind: DecodingKeyKind,

View File

@ -9,7 +9,7 @@ use crate::serialization::b64_encode_part;
/// A key to encode a JWT with. Can be a secret, a PEM-encoded key or a DER-encoded key.
/// This key can be re-used so make sure you only initialize it once if you can for better performance
#[derive(Debug, Clone, PartialEq)]
#[derive(Clone)]
pub struct EncodingKey {
pub(crate) family: AlgorithmFamily,
content: Vec<u8>,