pub struct LibQKemProvider { /* private fields */ }Expand description
lib-Q KEM provider implementation
This provider implements KEM operations for lib-Q, including key generation, encapsulation, and decapsulation with proper security validation.
Implementations§
Trait Implementations§
Source§impl Clone for LibQKemProvider
impl Clone for LibQKemProvider
Source§fn clone(&self) -> LibQKemProvider
fn clone(&self) -> LibQKemProvider
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 KemOperations for LibQKemProvider
Available on crate feature alloc only.
impl KemOperations for LibQKemProvider
Available on crate feature
alloc only.fn generate_keypair( &self, algorithm: Algorithm, randomness: Option<&[u8]>, ) -> Result<KemKeypair>
fn encapsulate( &self, algorithm: Algorithm, public_key: &KemPublicKey, randomness: Option<&[u8]>, ) -> Result<(Vec<u8>, Vec<u8>)>
fn decapsulate( &self, algorithm: Algorithm, secret_key: &KemSecretKey, ciphertext: &[u8], ) -> Result<Vec<u8>>
fn derive_public_key( &self, algorithm: Algorithm, secret_key: &KemSecretKey, ) -> Result<KemPublicKey>
Auto Trait Implementations§
impl Freeze for LibQKemProvider
impl RefUnwindSafe for LibQKemProvider
impl Send for LibQKemProvider
impl Sync for LibQKemProvider
impl Unpin for LibQKemProvider
impl UnsafeUnpin for LibQKemProvider
impl UnwindSafe for LibQKemProvider
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