pub struct LibQHqcProvider;Expand description
HQC provider for libQ integration
Implementations§
Source§impl LibQHqcProvider
impl LibQHqcProvider
Sourcepub fn new() -> Result<LibQHqcProvider, Error>
pub fn new() -> Result<LibQHqcProvider, Error>
Create a new HQC provider
Sourcepub fn capabilities(&self) -> Vec<Algorithm>
pub fn capabilities(&self) -> Vec<Algorithm>
Get the provider capabilities
Sourcepub fn supports_algorithm(&self, algorithm: Algorithm) -> bool
pub fn supports_algorithm(&self, algorithm: Algorithm) -> bool
Check if the provider supports a specific algorithm
Trait Implementations§
Source§impl Clone for LibQHqcProvider
impl Clone for LibQHqcProvider
Source§fn clone(&self) -> LibQHqcProvider
fn clone(&self) -> LibQHqcProvider
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 CryptoProvider for LibQHqcProvider
Available on crate features alloc and random only.
impl CryptoProvider for LibQHqcProvider
Available on crate features
alloc and random only.fn kem(&self) -> Option<&dyn KemOperations>
fn signature(&self) -> Option<&dyn SignatureOperations>
fn hash(&self) -> Option<&dyn HashOperations>
fn aead(&self) -> Option<&dyn AeadOperations>
Source§impl Debug for LibQHqcProvider
impl Debug for LibQHqcProvider
Source§impl Default for LibQHqcProvider
impl Default for LibQHqcProvider
Source§fn default() -> LibQHqcProvider
fn default() -> LibQHqcProvider
Returns the “default value” for a type. Read more
Source§impl KemOperations for LibQHqcProvider
Available on crate features alloc and random only.
impl KemOperations for LibQHqcProvider
Available on crate features
alloc and random only.fn generate_keypair( &self, algorithm: Algorithm, randomness: Option<&[u8]>, ) -> Result<KemKeypair, Error>
fn encapsulate( &self, algorithm: Algorithm, public_key: &KemPublicKey, randomness: Option<&[u8]>, ) -> Result<(Vec<u8>, Vec<u8>), Error>
fn decapsulate( &self, algorithm: Algorithm, secret_key: &KemSecretKey, ciphertext: &[u8], ) -> Result<Vec<u8>, Error>
fn derive_public_key( &self, algorithm: Algorithm, secret_key: &KemSecretKey, ) -> Result<KemPublicKey, Error>
Source§impl PartialEq for LibQHqcProvider
impl PartialEq for LibQHqcProvider
Source§fn eq(&self, other: &LibQHqcProvider) -> bool
fn eq(&self, other: &LibQHqcProvider) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LibQHqcProvider
Auto Trait Implementations§
impl Freeze for LibQHqcProvider
impl RefUnwindSafe for LibQHqcProvider
impl Send for LibQHqcProvider
impl Sync for LibQHqcProvider
impl Unpin for LibQHqcProvider
impl UnsafeUnpin for LibQHqcProvider
impl UnwindSafe for LibQHqcProvider
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more