struct Opener<const KEY_SIZE: usize, const KDF_SIZE: usize> {
key_schedule: KeySchedule<KEY_SIZE>,
}
Expand description
Adapts a KeySchedule and AeadKey for the role of a HpkeOpener.
Fields§
§key_schedule: KeySchedule<KEY_SIZE>
Implementations§
Source§impl<const KEY_SIZE: usize, const KDF_SIZE: usize> Opener<KEY_SIZE, KDF_SIZE>
impl<const KEY_SIZE: usize, const KDF_SIZE: usize> Opener<KEY_SIZE, KDF_SIZE>
Sourcefn new(
suite: &HpkeAwsLcRs<KEY_SIZE, KDF_SIZE>,
enc: &EncapsulatedSecret,
info: &[u8],
secret_key: &HpkePrivateKey,
) -> Result<Self, Error>
fn new( suite: &HpkeAwsLcRs<KEY_SIZE, KDF_SIZE>, enc: &EncapsulatedSecret, info: &[u8], secret_key: &HpkePrivateKey, ) -> Result<Self, Error>
Trait Implementations§
Auto Trait Implementations§
impl<const KEY_SIZE: usize, const KDF_SIZE: usize> Freeze for Opener<KEY_SIZE, KDF_SIZE>
impl<const KEY_SIZE: usize, const KDF_SIZE: usize> RefUnwindSafe for Opener<KEY_SIZE, KDF_SIZE>
impl<const KEY_SIZE: usize, const KDF_SIZE: usize> Send for Opener<KEY_SIZE, KDF_SIZE>
impl<const KEY_SIZE: usize, const KDF_SIZE: usize> Sync for Opener<KEY_SIZE, KDF_SIZE>
impl<const KEY_SIZE: usize, const KDF_SIZE: usize> Unpin for Opener<KEY_SIZE, KDF_SIZE>
impl<const KEY_SIZE: usize, const KDF_SIZE: usize> UnwindSafe for Opener<KEY_SIZE, KDF_SIZE>
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