pub struct UnboundCipherKey { /* private fields */ }Expand description
A key bound to a particular cipher algorithm.
Implementations§
Source§impl UnboundCipherKey
impl UnboundCipherKey
Sourcepub fn new(
algorithm: &'static Algorithm,
key_bytes: &[u8],
) -> Result<Self, Unspecified>
pub fn new( algorithm: &'static Algorithm, key_bytes: &[u8], ) -> Result<Self, Unspecified>
Constructs an UnboundCipherKey.
§Errors
Unspecifiedifkey_bytes.len()does not match the length required byalgorithm.