[]Struct recrypt::api::Recrypt

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

Recrypt public API - 256-bit


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

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

Construct a new Recrypt with pre-selected CSPRNG implementation.

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

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

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

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

Trait Implementations

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

impl<H, S, CR: RngCore + CryptoRng> Ed25519Ops for Recrypt<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 Recrypt<H, S, R>

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

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

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

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

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T> Same<T> for T

type Output = T

Should always be Self