pub struct Secret { /* private fields */ }Expand description
Encapsulates a PRF algorithm and secret bytes to be used to derive output.
Implementations§
Source§impl Secret
impl Secret
Sourcepub fn new(
algorithm: &'static Algorithm,
secret: &[u8],
) -> Result<Self, Unspecified>
pub fn new( algorithm: &'static Algorithm, secret: &[u8], ) -> Result<Self, Unspecified>
Constructs a new Secret for use with the associated P_hash Algorithm.
§Errors
Unspecified: Ifsecret.is_empty() == true.