pub struct SignatureSuite { /* private fields */ }Expand description
Digital signature suite for multi-purpose signing
Implementations§
Source§impl SignatureSuite
impl SignatureSuite
Sourcepub fn new_ed25519() -> Self
pub fn new_ed25519() -> Self
Create new suite with Ed25519
Sourcepub fn new_combined() -> Self
pub fn new_combined() -> Self
Create suite with both Ed25519 and HMAC
Sourcepub fn sign_ed25519(&self, message: &[u8]) -> Option<Vec<u8>>
pub fn sign_ed25519(&self, message: &[u8]) -> Option<Vec<u8>>
Sign with Ed25519 (returns None if not configured)
Sourcepub fn sign_hmac(&self, message: &[u8]) -> Option<Vec<u8>>
pub fn sign_hmac(&self, message: &[u8]) -> Option<Vec<u8>>
Sign with HMAC (returns None if not configured)
Sourcepub fn ed25519_public_key(&self) -> Option<Ed25519PublicKey>
pub fn ed25519_public_key(&self) -> Option<Ed25519PublicKey>
Get Ed25519 public key
Auto Trait Implementations§
impl Freeze for SignatureSuite
impl RefUnwindSafe for SignatureSuite
impl Send for SignatureSuite
impl Sync for SignatureSuite
impl Unpin for SignatureSuite
impl UnwindSafe for SignatureSuite
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