#[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 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