pub struct Dilithium5;Implementations§
Source§impl Dilithium5
impl Dilithium5
pub fn keypair() -> Result<(Vec<u8>, Vec<u8>), SigningErr>
pub fn save_public(public_key: &[u8]) -> Result<(), SigningErr>
pub fn save_secret(secret_key: &[u8]) -> Result<(), SigningErr>
pub fn load(path: &Path) -> Result<Vec<u8>, SigningErr>
Trait Implementations§
Source§impl KeyOperations for Dilithium5
impl KeyOperations for Dilithium5
Source§impl SignatureFunctions for Dilithium5
impl SignatureFunctions for Dilithium5
Source§fn sign_message(data: Vec<u8>, key: Vec<u8>) -> Result<Vec<u8>, SigningErr>
fn sign_message(data: Vec<u8>, key: Vec<u8>) -> Result<Vec<u8>, SigningErr>
Signs a given message with the provided key.
Source§fn detached_signature(
data: Vec<u8>,
key: Vec<u8>,
) -> Result<Vec<u8>, SigningErr>
fn detached_signature( data: Vec<u8>, key: Vec<u8>, ) -> Result<Vec<u8>, SigningErr>
Creates a detached signature for the given data.
Auto Trait Implementations§
impl Freeze for Dilithium5
impl RefUnwindSafe for Dilithium5
impl Send for Dilithium5
impl Sync for Dilithium5
impl Unpin for Dilithium5
impl UnwindSafe for Dilithium5
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