Type Alias oprf::coprf::coprf_setup::CoPRFMasterSecret
source · pub type CoPRFMasterSecret = Vec<u8>;
Expand description
The master secret for generating coPRF keys. It is fixed to a
length 32 bytes since that is the number of bytes necessary as an
input for HPKE-style key derivation when targeting scalars in
P256. Per the HPKE RFC [RFC9180] it is crucial that a minimum of
Nsk
bytes of entropy is provided to the key derivation
algorithm, where Nsk
is the number of bytes to represent a valid
private key, i.e. a P256 scalar in our case.
Aliased Type§
struct CoPRFMasterSecret { /* private fields */ }