[][src]Struct round5::kem::R5Kem

pub struct R5Kem { /* fields omitted */ }

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.