[−][src]Struct ciph::salsa::WrapKey
A wrapped Key for convenience and to ensure bytes are erased when dropped.
Implementations
impl WrapKey
[src]
impl WrapKey
[src]
pub fn new(key: &Key) -> Self
[src]
Build a wrapped key by cloning the provided key. It is up to the caller to properly dispose of the memory.
pub fn from_bytes_and_erase_source(bytes: &mut [u8; 32]) -> Self
[src]
Convenience method. Build the key from the submitted array reference. Since the bytes are cloned, the source is zeroed to help prevent security breaches.
Trait Implementations
impl Clone for WrapKey
[src]
impl Debug for WrapKey
[src]
impl Drop for WrapKey
[src]
impl Eq for WrapKey
[src]
impl From<&'_ GenericArray<u8, <Salsa<R20> as NewStreamCipher>::KeySize>> for WrapKey
[src]
impl FromStr for WrapKey
[src]
Build a WrapKey
from a base64 encoded string. Same precaution applies with the string
data floating in memory after the key is built.
type Err = ParseKeyError
The associated error which can be returned from parsing.
pub fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl PartialEq<WrapKey> for WrapKey
[src]
impl StructuralEq for WrapKey
[src]
impl StructuralPartialEq for WrapKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for WrapKey
[src]
impl Send for WrapKey
[src]
impl Sync for WrapKey
[src]
impl Unpin for WrapKey
[src]
impl UnwindSafe for WrapKey
[src]
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,