pub struct Key {
pub inner: XChaChaKey,
}Fields§
§inner: XChaChaKeyTrait Implementations§
Source§impl AsRef<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for Key
impl AsRef<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for Key
Source§fn as_ref(&self) -> &XChaChaKey
fn as_ref(&self) -> &XChaChaKey
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Digestible for Key
impl Digestible for Key
Source§fn hashable_bytes(&self) -> Vec<Box<dyn AsRef<[u8]> + '_>>
fn hashable_bytes(&self) -> Vec<Box<dyn AsRef<[u8]> + '_>>
Return a vector of byte references that represent this data structure. Read more
Source§fn digest(&self) -> CoreWrapper<Sha3_512Core>
fn digest(&self) -> CoreWrapper<Sha3_512Core>
Generate a SHA3-512 digest from the hashable bytes.
Source§fn finalized_digest(&self) -> [u8; 64]
fn finalized_digest(&self) -> [u8; 64]
Generate a finalized SHA3-512 digest as a 64-byte array.
Source§impl From<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for Key
impl From<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for Key
Source§fn from(inner: XChaChaKey) -> Self
fn from(inner: XChaChaKey) -> Self
Converts to this type from the input type.
Source§impl ProstDecode for Key
impl ProstDecode for Key
type EncodedType = Key
fn decode<M>(message: M) -> Result<Self, DecodeError>
Source§impl ProstEncode for Key
impl ProstEncode for Key
Source§impl RandomFromRng for Key
impl RandomFromRng for Key
fn random_from_rng(csprng: &mut impl CryptoRngCore) -> Self
impl Copy for Key
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