[−][src]Struct pwbox::sodium::Sodium
This is supported on crate feature
exonum_sodiumoxide
only.Suite for password-based encryption provided by libsodium
.
Ciphers
xsalsa20-poly1305
: XSalsa20 stream cipher with Poly1305 MACchacha20-poly1305
: ChaCha20 stream cipher with Poly1305 MAC as per RFC 8439
KDFs
scrypt-nacl
:scrypt
KDF with thelibsodium
parametrization.scrypt
:scrypt
KDF with the original parametrization.
Examples
See crate-level docs for the example of usage.
Trait Implementations
impl Debug for Sodium
[src]
impl Suite for Sodium
[src]
type Cipher = XSalsa20Poly1305
Recommended cipher for this suite.
type DeriveKey = Scrypt
Recommended KDF for this suite.
fn add_ciphers_and_kdfs(eraser: &mut Eraser)
[src]
fn build_box<R: RngCore + CryptoRng>(
rng: &mut R
) -> PwBoxBuilder<'_, Self::DeriveKey, Self::Cipher>
[src]
rng: &mut R
) -> PwBoxBuilder<'_, Self::DeriveKey, Self::Cipher>
Auto Trait Implementations
impl RefUnwindSafe for Sodium
impl Send for Sodium
impl Sync for Sodium
impl Unpin for Sodium
impl UnwindSafe for Sodium
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,
pub 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> Same<T> for T
type Output = T
Should always be Self
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.
pub 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>,