#[repr(C)]pub struct cose_sign {
pub hdrs: cose_headers_t,
pub signatures: *mut cose_signature_t,
pub payload: *const c_void,
pub payload_len: size_t,
pub ext_aad: *const c_void,
pub ext_aad_len: size_t,
pub flags: u16,
}
Expand description
@name COSE sign, https://tools.ietf.org/html/rfc8152#section-4
@brief Struct for encoding to both the COSE sign1 and COSE sign objects. @{
Fields§
§hdrs: cose_headers_t
< Headers
signatures: *mut cose_signature_t
< Signer data array
payload: *const c_void
< Pointer to the payload
payload_len: size_t
< Size of the payload
ext_aad: *const c_void
< Pointer to the additional authenticated data
ext_aad_len: size_t
< Size of the AAD
flags: u16
< Flags as defined
Trait Implementations§
impl Copy for cose_sign
Auto Trait Implementations§
impl Freeze for cose_sign
impl RefUnwindSafe for cose_sign
impl !Send for cose_sign
impl !Sync for cose_sign
impl Unpin for cose_sign
impl UnwindSafe for cose_sign
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
)Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes