pub enum LinkKeyBytes {
Legacy([u8; 32]),
Versioned([u8; 33]),
}Expand description
Opaque link secret or masked key. Its first byte need not identify a suite.
Variants§
Implementations§
Source§impl LinkKeyBytes
impl LinkKeyBytes
pub fn from_hex(value: &str) -> Result<Self, CryptoError>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, CryptoError>
Trait Implementations§
Source§impl AsRef<[u8]> for LinkKeyBytes
impl AsRef<[u8]> for LinkKeyBytes
Source§impl Clone for LinkKeyBytes
impl Clone for LinkKeyBytes
impl Copy for LinkKeyBytes
Source§impl Debug for LinkKeyBytes
impl Debug for LinkKeyBytes
impl Eq for LinkKeyBytes
Source§impl Hash for LinkKeyBytes
impl Hash for LinkKeyBytes
Source§impl PartialEq for LinkKeyBytes
impl PartialEq for LinkKeyBytes
impl StructuralPartialEq for LinkKeyBytes
Auto Trait Implementations§
impl Freeze for LinkKeyBytes
impl RefUnwindSafe for LinkKeyBytes
impl Send for LinkKeyBytes
impl Sync for LinkKeyBytes
impl Unpin for LinkKeyBytes
impl UnsafeUnpin for LinkKeyBytes
impl UnwindSafe for LinkKeyBytes
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)