riot_sys

Type Alias cose_sign_enc_t

Source
pub type cose_sign_enc_t = cose_sign;
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. @{

Aliased Type§

struct cose_sign_enc_t {
    pub hdrs: cose_headers_t,
    pub signatures: *mut cose_signature,
    pub payload: *const c_void,
    pub payload_len: u32,
    pub ext_aad: *const c_void,
    pub ext_aad_len: u32,
    pub flags: u16,
}

Fields§

§hdrs: cose_headers_t

< Headers

§signatures: *mut cose_signature

< Signer data array

§payload: *const c_void

< Pointer to the payload

§payload_len: u32

< Size of the payload

§ext_aad: *const c_void

< Pointer to the additional authenticated data

§ext_aad_len: u32

< Size of the AAD

§flags: u16

< Flags as defined

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