#[repr(C)]pub struct otCryptoKey {
pub mKey: *const u8,
pub mKeyLength: u16,
pub mKeyRef: u32,
}
Expand description
@struct otCryptoKey
Represents the Key Material required for Crypto operations.
Fields§
§mKey: *const u8
< Pointer to the buffer containing key. NULL indicates to use mKeyRef
.
mKeyLength: u16
< The key length in bytes (applicable when mKey
is not NULL).
mKeyRef: u32
< The PSA key ref (requires mKey
to be NULL).
Trait Implementations§
Source§impl Clone for otCryptoKey
impl Clone for otCryptoKey
Source§fn clone(&self) -> otCryptoKey
fn clone(&self) -> otCryptoKey
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for otCryptoKey
impl Debug for otCryptoKey
Source§impl Default for otCryptoKey
impl Default for otCryptoKey
impl Copy for otCryptoKey
Auto Trait Implementations§
impl Freeze for otCryptoKey
impl RefUnwindSafe for otCryptoKey
impl !Send for otCryptoKey
impl !Sync for otCryptoKey
impl Unpin for otCryptoKey
impl UnwindSafe for otCryptoKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)