/// Generates the contextString parameter as defined in
/// <https://datatracker.ietf.org/doc/draft-irtf-cfrg-voprf/>
Generates the contextString parameter as defined in
Generates the contextString parameter as defined in
pub(crate) fn create_context_string<CS: CipherSuite>(mode: Mode) -> GenericArray<u8, U11>
where
    <CS::Hash as OutputSizeUser>::OutputSize:
        IsLess<U256> + IsLessOrEqual<<CS::Hash as BlockSizeUser>::BlockSize>,
{
    GenericArray::from(STR_VOPRF)
        .concat([mode.to_u8()].into())
        .concat(CS::ID.to_be_bytes().into())
}
pub ( crate ) fn create_context_string < CS : CipherSuite > ( mode : Mode ) -> GenericArray < u8 , U11 > where < CS :: Hash as OutputSizeUser > :: OutputSize : IsLess < U256 > + IsLessOrEqual < < CS :: Hash as BlockSizeUser > :: BlockSize > , { GenericArray :: from ( STR_VOPRF ) . concat ( [ mode . to_u8 ( ) ] . into ( ) ) . concat ( CS :: ID . to_be_bytes ( ) . into ( ) ) }
Generates the contextString parameter as defined in
<https://datatracker.ietf.org/doc/draft-irtf-cfrg-voprf/>
Generates the contextString parameter as defined in <https : // datatracker . ietf . org / doc / draft - irtf - cfrg - voprf / >
mode
Mode