pub struct ReturnKeys {
pub ammag: [u8; 32],
pub um: [u8; 32],
}Expand description
Keys used to return the error packet.
Fields§
§ammag: [u8; 32]Key derived from the shared secret for the hop. It is used to encrypt the error packet data.
um: [u8; 32]Key derived from the shared secret for the hop. It is used to compute the HMAC of the error packet data.
Implementations§
source§impl ReturnKeys
impl ReturnKeys
sourcepub fn new(shared_secret: &[u8]) -> ReturnKeys
pub fn new(shared_secret: &[u8]) -> ReturnKeys
Derive keys for returning the error onion packet from the shared secret.
Trait Implementations§
source§impl Clone for ReturnKeys
impl Clone for ReturnKeys
source§fn clone(&self) -> ReturnKeys
fn clone(&self) -> ReturnKeys
Returns a copy of the value. Read more
1.6.0 · 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 ReturnKeys
impl Debug for ReturnKeys
source§impl PartialEq for ReturnKeys
impl PartialEq for ReturnKeys
impl Eq for ReturnKeys
impl StructuralPartialEq for ReturnKeys
Auto Trait Implementations§
impl Freeze for ReturnKeys
impl RefUnwindSafe for ReturnKeys
impl Send for ReturnKeys
impl Sync for ReturnKeys
impl Unpin for ReturnKeys
impl UnwindSafe for ReturnKeys
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)