[]Struct recrypt::api_480::Recrypt480

pub struct Recrypt480<H, S, R> { /* fields omitted */ }

Recrypt public API - 480-bit If you are looking better performance, you might consider the 256-bit API in api.rs

Methods

impl Recrypt480<Sha256, Ed25519, RandomBytes<DefaultRng>>

pub fn new() -> Recrypt480<Sha256, Ed25519, RandomBytes<DefaultRng>>

Construct a new Recrypt480 with pre-selected CSPRNG implementation.

The RNG will periodically reseed itself from the system's best entropy source.

impl<CR: CryptoRng + RngCore> Recrypt480<Sha256, Ed25519, RandomBytes<CR>>

pub fn new_with_rand(r: CR) -> Recrypt480<Sha256, Ed25519, RandomBytes<CR>>

Construct a Recrypt480 with the given RNG. Unless you have specific needs using new() is recommended.

Trait Implementations

impl<H: Sha256Hashing, S, CR: RngCore + CryptoRng> SchnorrOps for Recrypt480<H, S, RandomBytes<CR>>

impl<H, S, CR: RngCore + CryptoRng> Ed25519Ops for Recrypt480<H, S, RandomBytes<CR>>

fn generate_ed25519_key_pair(&self) -> SigningKeypair

Generate a signing key pair for use with the Ed25519Signing trait using the random number generator used to back the RandomBytes struct.

impl<R: RandomBytesGen, H: Sha256Hashing, S: Ed25519Signing> KeyGenOps for Recrypt480<H, S, R>

impl<R: RandomBytesGen, H: Sha256Hashing, S: Ed25519Signing> CryptoOps for Recrypt480<H, S, R>

impl Default for Recrypt480<Sha256, Ed25519, RandomBytes<DefaultRng>>

impl<H: Debug, S: Debug, R: Debug> Debug for Recrypt480<H, S, R>

Auto Trait Implementations

impl<H, S, R> Send for Recrypt480<H, S, R> where
    H: Send,
    R: Send,
    S: Send

impl<H, S, R> Unpin for Recrypt480<H, S, R> where
    H: Unpin,
    R: Unpin,
    S: Unpin

impl<H, S, R> Sync for Recrypt480<H, S, R> where
    H: Sync,
    R: Sync,
    S: Sync

impl<H, S, R> UnwindSafe for Recrypt480<H, S, R> where
    H: UnwindSafe,
    R: UnwindSafe,
    S: UnwindSafe

impl<H, S, R> RefUnwindSafe for Recrypt480<H, S, R> where
    H: RefUnwindSafe,
    R: RefUnwindSafe,
    S: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized
[src]

impl<T> InitializableFromZeroed for T where
    T: Default
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self