pub struct AlgorithmSigner { /* private fields */ }Implementations§
Source§impl AlgorithmSigner
impl AlgorithmSigner
pub fn new_verify( pkey: &CPointer<EVP_PKEY>, signature: &SignatureAlgorithm, ) -> Result<AlgorithmSigner, RlsError>
pub fn new_sign( pkey: &CPointer<EVP_PKEY>, signature: &SignatureAlgorithm, ) -> Result<AlgorithmSigner, RlsError>
pub fn verify( &self, data: impl AsRef<[u8]>, signature: &[u8], ) -> Result<(), RlsError>
pub fn sign(&self, data: impl AsRef<[u8]>) -> Result<Vec<u8>, RlsError>
Auto Trait Implementations§
impl Freeze for AlgorithmSigner
impl RefUnwindSafe for AlgorithmSigner
impl Send for AlgorithmSigner
impl Sync for AlgorithmSigner
impl Unpin for AlgorithmSigner
impl UnsafeUnpin for AlgorithmSigner
impl UnwindSafe for AlgorithmSigner
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