pub enum SigningAlgorithm {
RsaSha256,
Ed25519Sha256,
}Expand description
A signing algorithm.
When feature pre-rfc8301 is enabled, this enum has a third variant
RsaSha1 representing the rsa-sha1 signing algorithm.
Variants§
Implementations§
Source§impl SigningAlgorithm
impl SigningAlgorithm
Sourcepub fn from_parts(key_type: KeyType, hash_alg: HashAlgorithm) -> Option<Self>
pub fn from_parts(key_type: KeyType, hash_alg: HashAlgorithm) -> Option<Self>
Assembles a signing algorithm from the constituent key type and hash algorithm, if possible.
Sourcepub fn hash_algorithm(self) -> HashAlgorithm
pub fn hash_algorithm(self) -> HashAlgorithm
Returns this signing algorithm’s hash algorithm component.
Trait Implementations§
Source§impl CanonicalStr for SigningAlgorithm
impl CanonicalStr for SigningAlgorithm
Source§fn canonical_str(&self) -> &'static str
fn canonical_str(&self) -> &'static str
Returns the canonical representation as a static string slice.
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 Display for SigningAlgorithm
impl Display for SigningAlgorithm
Source§impl From<SigningAlgorithm> for (KeyType, HashAlgorithm)
impl From<SigningAlgorithm> for (KeyType, HashAlgorithm)
Source§fn from(alg: SigningAlgorithm) -> Self
fn from(alg: 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
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 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