pub enum SigningKey<'a> {
RsaPem(&'a str),
Rsa(&'a PrivateKey),
Ed25519(&'a [u8; 32]),
}Expand description
The private key a signature is made with.
Variants§
RsaPem(&'a str)
PKCS#8 or PKCS#1 PEM-encoded RSA private key, parsed each time.
Rsa(&'a PrivateKey)
An RSA private key parsed once by PrivateKey::from_pem.
Ed25519(&'a [u8; 32])
A raw 32-byte Ed25519 seed.
Auto Trait Implementations§
impl<'a> Freeze for SigningKey<'a>
impl<'a> RefUnwindSafe for SigningKey<'a>
impl<'a> Send for SigningKey<'a>
impl<'a> Sync for SigningKey<'a>
impl<'a> Unpin for SigningKey<'a>
impl<'a> UnsafeUnpin for SigningKey<'a>
impl<'a> UnwindSafe for SigningKey<'a>
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