pub enum SigningAlgorithm {
Es256,
Es384,
Es512,
Ps256,
Ps384,
Ps512,
}Expand description
Signature algorithms approved for use in the context of EUDI.
§Algorithms
This enumeration contains only JOSE asymmetric signature algorithms approved for use by SOG-IS ACM v1.2, with any parameters (e.g. RSA modulus size) meeting therein imposed requirements.
For more details see the following references:
- IETF draft section 5.1.1, section 10.1;
- SOG-IS Agreed Cryptographic Mechanisms v1.2;
- ETSI TS 119 312 sections 6 and 7.
Variants§
Es256
ECDSA over P-256 with SHA-256
Es384
ECDSA over P-384 with SHA-384
Es512
ECDSA over P-521 with SHA-512
Ps256
RSASSA-PSS with SHA-256 and MGF1 with SHA-256
Ps384
RSASSA-PSS with SHA-384 and MGF1 with SHA-384
Ps512
RSASSA-PSS with SHA-512 and MGF1 with SHA-512
Trait Implementations§
Source§impl Clone for SigningAlgorithm
impl Clone for SigningAlgorithm
Source§fn clone(&self) -> SigningAlgorithm
fn clone(&self) -> SigningAlgorithm
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SigningAlgorithm
impl Debug for SigningAlgorithm
Source§impl<'de> Deserialize<'de> for SigningAlgorithm
impl<'de> Deserialize<'de> for SigningAlgorithm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SigningAlgorithm
impl Display for SigningAlgorithm
Source§impl From<SigningAlgorithm> for AlgorithmType
impl From<SigningAlgorithm> for AlgorithmType
Source§fn from(value: SigningAlgorithm) -> Self
fn from(value: SigningAlgorithm) -> Self
Converts to this type from the input type.
Source§impl FromStr for SigningAlgorithm
impl FromStr for SigningAlgorithm
Source§impl Hash for SigningAlgorithm
impl Hash for SigningAlgorithm
Source§impl PartialEq for SigningAlgorithm
impl PartialEq for SigningAlgorithm
Source§impl Serialize for SigningAlgorithm
impl Serialize for SigningAlgorithm
impl Copy for SigningAlgorithm
impl Eq for SigningAlgorithm
impl StructuralPartialEq for SigningAlgorithm
Auto Trait Implementations§
impl Freeze for SigningAlgorithm
impl RefUnwindSafe for SigningAlgorithm
impl Send for SigningAlgorithm
impl Sync for SigningAlgorithm
impl Unpin for SigningAlgorithm
impl UnsafeUnpin for SigningAlgorithm
impl UnwindSafe for SigningAlgorithm
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more