pub enum DkimPrivateKey {
Ed25519(SigningKey),
OpenSSLRsa(Rsa<Private>),
}
Variants§
Implementations§
source§impl DkimPrivateKey
impl DkimPrivateKey
sourcepub fn rsa_key(data: &[u8]) -> Result<Self, DKIMError>
pub fn rsa_key(data: &[u8]) -> Result<Self, DKIMError>
Parse RSA key data into a DkimPrivateKey
sourcepub fn rsa_key_file<P: AsRef<Path>>(path: P) -> Result<Self, DKIMError>
pub fn rsa_key_file<P: AsRef<Path>>(path: P) -> Result<Self, DKIMError>
Load RSA key data from a file and parse it into a DkimPrivateKey
sourcepub fn ed25519_key(data: &[u8]) -> Result<Self, DKIMError>
pub fn ed25519_key(data: &[u8]) -> Result<Self, DKIMError>
Parse PKCS8 encoded ed25519 key data into a DkimPrivateKey. Both DER and PEM are supported
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DkimPrivateKey
impl RefUnwindSafe for DkimPrivateKey
impl Send for DkimPrivateKey
impl Sync for DkimPrivateKey
impl Unpin for DkimPrivateKey
impl UnwindSafe for DkimPrivateKey
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