pub enum KDF {
HKDF_SHA256,
HKDF_SHA384,
HKDF_SHA512,
}
Expand description
Key Derivation Functions (KDFs)
Value | KDF | Nh | Reference |
---|---|---|---|
0x0000 | (reserved) | N/A | N/A |
0x0001 | HKDF-SHA256 | 32 | RFC5869 |
0x0002 | HKDF-SHA384 | 48 | RFC5869 |
0x0003 | HKDF-SHA512 | 64 | RFC5869 |
KDF Identifiers
The “HPKE KDF Identifiers” registry lists identifiers for key derivation functions defined for use with HPKE. These identifiers are two-byte values, so the maximum possible value is 0xFFFF = 65535.
Template:
- Value: The two-byte identifier for the algorithm
- KDF: The name of the algorithm
- Nh: The output size of the Extract function in bytes
- Reference: Where this algorithm is defined
Variants
HKDF_SHA256
0x0001
HKDF_SHA384
0x0002
HKDF_SHA512
0x0003
Trait Implementations
impl Copy for KDF
impl StructuralPartialEq for KDF
Auto Trait Implementations
impl RefUnwindSafe for KDF
impl Send for KDF
impl Sync for KDF
impl Unpin for KDF
impl UnwindSafe for KDF
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more