[][src]Trait pwbox::Suite

pub trait Suite {
    type Cipher: Cipher;
    type DeriveKey: DeriveKey + Clone + Default;
    fn add_ciphers_and_kdfs(eraser: &mut Eraser);

    fn build_box<R: RngCore + CryptoRng>(
        rng: &mut R
    ) -> PwBoxBuilder<'_, Self::DeriveKey, Self::Cipher> { ... } }

Cryptographic suite providing ciphers and KDFs for password-based encryption.

Associated Types

type Cipher: Cipher

Recommended cipher for this suite.

type DeriveKey: DeriveKey + Clone + Default

Recommended KDF for this suite.

Loading content...

Required methods

fn add_ciphers_and_kdfs(eraser: &mut Eraser)

Adds ciphers and KDFs from this suite into the specified Eraser.

Loading content...

Provided methods

fn build_box<R: RngCore + CryptoRng>(
    rng: &mut R
) -> PwBoxBuilder<'_, Self::DeriveKey, Self::Cipher>

Initializes a PwBoxBuilder with the recommended cipher and KDF.

Loading content...

Implementors

impl Suite for PureCrypto[src]

type Cipher = ChaCha20Poly1305

type DeriveKey = Scrypt

impl Suite for RustCrypto[src]

impl Suite for Sodium[src]

Loading content...