pub struct WrappedKey(/* private fields */);Expand description
A base key wrapped to one recipient: X-Wing enc ‖ AES-256-GCM ciphertext ‖ tag.
Implementations§
Source§impl WrappedKey
impl WrappedKey
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, VoiceError>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, VoiceError>
Sourcepub fn hash(&self) -> [u8; 32]
pub fn hash(&self) -> [u8; 32]
SHA3-256 of the wire form, as signed in SenderKeys.
Trait Implementations§
Source§impl Clone for WrappedKey
impl Clone for WrappedKey
Source§fn clone(&self) -> WrappedKey
fn clone(&self) -> WrappedKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WrappedKey
impl Debug for WrappedKey
impl Eq for WrappedKey
Source§impl PartialEq for WrappedKey
impl PartialEq for WrappedKey
impl StructuralPartialEq for WrappedKey
Auto Trait Implementations§
impl Freeze for WrappedKey
impl RefUnwindSafe for WrappedKey
impl Send for WrappedKey
impl Sync for WrappedKey
impl Unpin for WrappedKey
impl UnsafeUnpin for WrappedKey
impl UnwindSafe for WrappedKey
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