pub struct SignatureManager { /* private fields */ }Expand description
Signature verification manager.
Implementations§
Source§impl SignatureManager
impl SignatureManager
Sourcepub fn add_verifier(&mut self, verifier: Box<dyn SignatureVerifier>)
pub fn add_verifier(&mut self, verifier: Box<dyn SignatureVerifier>)
Add a custom verifier for an algorithm.
Sourcepub fn verify(&self, data: &[u8], config: &SignatureConfig) -> Result<bool>
pub fn verify(&self, data: &[u8], config: &SignatureConfig) -> Result<bool>
Verify a signature.
Sourcepub fn supports_algorithm(&self, algorithm: SignatureAlgorithm) -> bool
pub fn supports_algorithm(&self, algorithm: SignatureAlgorithm) -> bool
Check if an algorithm is supported.
Sourcepub fn supported_algorithms(&self) -> Vec<SignatureAlgorithm>
pub fn supported_algorithms(&self) -> Vec<SignatureAlgorithm>
Get all supported algorithms.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SignatureManager
impl !RefUnwindSafe for SignatureManager
impl Send for SignatureManager
impl Sync for SignatureManager
impl Unpin for SignatureManager
impl UnsafeUnpin for SignatureManager
impl !UnwindSafe for SignatureManager
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