[−][src]Struct round5::kem::R5Kem
Methods
impl R5Kem
[src]
pub fn new(params: Parameters) -> R5Kem
[src]
pub fn default() -> R5Kem
[src]
pub fn public(&self) -> &[u8]
[src]
pub fn keypair(&mut self, rng: &mut dyn Random)
[src]
pub fn enc(&self, pubkey: &[u8], rng: &mut dyn Random) -> (Vec<u8>, Vec<u8>)
[src]
pub fn dec(&self, ciphertext: &[u8]) -> Vec<u8>
[src]
Trait Implementations
impl Kem for R5Kem
[src]
fn name(&self) -> &'static str
[src]
fn pub_len(&self) -> usize
[src]
fn ciphertext_len(&self) -> usize
[src]
fn shared_secret_len(&self) -> usize
[src]
fn generate(&mut self, rng: &mut dyn Random)
[src]
fn pubkey(&self) -> &[u8]
[src]
fn encapsulate(
&self,
pubkey: &[u8],
shared_secret_out: &mut [u8],
ciphertext_out: &mut [u8],
rng: &mut dyn Random
) -> Result<(usize, usize), ()>
[src]
&self,
pubkey: &[u8],
shared_secret_out: &mut [u8],
ciphertext_out: &mut [u8],
rng: &mut dyn Random
) -> Result<(usize, usize), ()>
fn decapsulate(
&self,
ciphertext: &[u8],
shared_secret_out: &mut [u8]
) -> Result<usize, ()>
[src]
&self,
ciphertext: &[u8],
shared_secret_out: &mut [u8]
) -> Result<usize, ()>
Auto Trait Implementations
impl RefUnwindSafe for R5Kem
impl Send for R5Kem
impl Sync for R5Kem
impl Unpin for R5Kem
impl UnwindSafe for R5Kem
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,