pub struct LibQSignatureProvider { /* private fields */ }Expand description
lib-Q signature provider implementation
This provider implements signature operations for lib-Q, including key generation, signing, and verification with proper security validation.
Implementations§
Trait Implementations§
Source§impl Clone for LibQSignatureProvider
impl Clone for LibQSignatureProvider
Source§fn clone(&self) -> LibQSignatureProvider
fn clone(&self) -> LibQSignatureProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl SignatureOperations for LibQSignatureProvider
Available on crate feature alloc only.
impl SignatureOperations for LibQSignatureProvider
Available on crate feature
alloc only.fn generate_keypair( &self, algorithm: Algorithm, randomness: Option<&[u8]>, ) -> Result<SigKeypair>
fn sign( &self, algorithm: Algorithm, secret_key: &SigSecretKey, message: &[u8], randomness: Option<&[u8]>, ) -> Result<Vec<u8>>
fn verify( &self, algorithm: Algorithm, public_key: &SigPublicKey, message: &[u8], signature: &[u8], ) -> Result<bool>
Auto Trait Implementations§
impl Freeze for LibQSignatureProvider
impl RefUnwindSafe for LibQSignatureProvider
impl Send for LibQSignatureProvider
impl Sync for LibQSignatureProvider
impl Unpin for LibQSignatureProvider
impl UnsafeUnpin for LibQSignatureProvider
impl UnwindSafe for LibQSignatureProvider
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