pub struct SaberSecretKey(pub Vec<u8>);Tuple Fields§
§0: Vec<u8>Implementations§
Source§impl SaberSecretKey
impl SaberSecretKey
Sourcepub fn to_bytes_zeroizing(&self) -> Zeroizing<Vec<u8>>
pub fn to_bytes_zeroizing(&self) -> Zeroizing<Vec<u8>>
Export the secret key to bytes with zeroization
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Create from a byte slice
Trait Implementations§
Source§impl Clone for SaberSecretKey
impl Clone for SaberSecretKey
Source§fn clone(&self) -> SaberSecretKey
fn clone(&self) -> SaberSecretKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Drop for SaberSecretKey
impl Drop for SaberSecretKey
Auto Trait Implementations§
impl Freeze for SaberSecretKey
impl RefUnwindSafe for SaberSecretKey
impl Send for SaberSecretKey
impl Sync for SaberSecretKey
impl Unpin for SaberSecretKey
impl UnwindSafe for SaberSecretKey
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