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
Unspecified
ifkey_bytes.len()
does not match the length required byalgorithm
.
Trait Implementations§
Source§impl Debug for UnboundCipherKey
impl Debug for UnboundCipherKey
Auto Trait Implementations§
impl Freeze for UnboundCipherKey
impl RefUnwindSafe for UnboundCipherKey
impl Send for UnboundCipherKey
impl Sync for UnboundCipherKey
impl Unpin for UnboundCipherKey
impl UnwindSafe for UnboundCipherKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more