pub enum VerifyingKey {
RS256(Box<VerifyingKey<Sha256>>),
RS384(Box<VerifyingKey<Sha384>>),
RS512(Box<VerifyingKey<Sha512>>),
EC256(Box<VerifyingKey>),
EC384(Box<VerifyingKey>),
}
Variants§
RS256(Box<VerifyingKey<Sha256>>)
RS384(Box<VerifyingKey<Sha384>>)
RS512(Box<VerifyingKey<Sha512>>)
EC256(Box<VerifyingKey>)
EC384(Box<VerifyingKey>)
Implementations§
Source§impl VerifyingKey
impl VerifyingKey
pub fn from_ec256(key: PublicKey) -> Self
pub fn from_ec384(key: PublicKey) -> Self
pub fn from_rsa256(key: RsaPublicKey) -> Self
pub fn from_rsa384(key: RsaPublicKey) -> Self
pub fn from_rsa512(key: RsaPublicKey) -> Self
Trait Implementations§
Source§impl Clone for VerifyingKey
impl Clone for VerifyingKey
Source§fn clone(&self) -> VerifyingKey
fn clone(&self) -> VerifyingKey
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for VerifyingKey
impl RefUnwindSafe for VerifyingKey
impl Send for VerifyingKey
impl Sync for VerifyingKey
impl Unpin for VerifyingKey
impl UnwindSafe for VerifyingKey
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