Struct ring::aead::UnboundKey
source · pub struct UnboundKey {
inner: LessSafeKey,
}
Expand description
An AEAD key without a designated role or nonce sequence.
Fields§
§inner: LessSafeKey
Implementations§
source§impl UnboundKey
impl UnboundKey
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 a UnboundKey
.
Fails if key_bytes.len() != algorithm.key_len()
.
pub(super) fn into_inner(self) -> LessSafeKey
Trait Implementations§
source§impl Debug for UnboundKey
impl Debug for UnboundKey
Auto Trait Implementations§
impl Freeze for UnboundKey
impl RefUnwindSafe for UnboundKey
impl Send for UnboundKey
impl Sync for UnboundKey
impl Unpin for UnboundKey
impl UnwindSafe for UnboundKey
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