pub struct Key(/* private fields */);
Expand description
A large secret key, derived from a secret seed
Implementations§
source§impl Key
impl Key
sourcepub fn from_seed(seed: &[u8], personalization: Option<&[u8]>) -> Key
pub fn from_seed(seed: &[u8], personalization: Option<&[u8]>) -> Key
Creates a new key from a secret seed
This expands the seed
into a large secret key.
personalization
is an optional context, that can be set to the
application name. The same seed
used in different contexts will
produce different keys, hence different hashes.
Trait Implementations§
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more