pub struct ConcatenationCombiner;
Expand description
NIST SP 800-56C Rev. 2 Option 1: Concatenation KDF
This implements the concatenation KDF as specified in NIST SP 800-56C Rev. 2, Section 4.1. It concatenates the shared secrets and applies a KDF.
Implementations§
Source§impl ConcatenationCombiner
impl ConcatenationCombiner
Sourcepub fn combine(
classical_secret: &[u8],
pqc_secret: &[u8],
info: &[u8],
) -> PqcResult<SharedSecret>
pub fn combine( classical_secret: &[u8], pqc_secret: &[u8], info: &[u8], ) -> PqcResult<SharedSecret>
Sourcepub fn combine_with_salt(
classical_secret: &[u8],
pqc_secret: &[u8],
salt: &[u8],
info: &[u8],
) -> PqcResult<SharedSecret>
pub fn combine_with_salt( classical_secret: &[u8], pqc_secret: &[u8], salt: &[u8], info: &[u8], ) -> PqcResult<SharedSecret>
Combine with additional salt parameter
§Arguments
classical_secret
- The classical shared secretpqc_secret
- The post-quantum shared secretsalt
- Optional salt value for HKDFinfo
- Context-specific information
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConcatenationCombiner
impl RefUnwindSafe for ConcatenationCombiner
impl Send for ConcatenationCombiner
impl Sync for ConcatenationCombiner
impl Unpin for ConcatenationCombiner
impl UnwindSafe for ConcatenationCombiner
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