WE310F5  39.00.000
m2mb_crypto_attrib Struct Reference

An attribute can be either a buffer attribute or a value attribute. This is determined by bit [29] of the attribute identifier. If this bit is set to 0, then the attribute is a buffer attribute and the field ref must be selected. If the bit is set to 1, it is a value attribute and the field val must be selected. More...

#include <m2mb_crypto.h>

Data Fields

uint32_t attrib_id
 
union {
   struct {
      void *   buf
 
      uint32_t   len
 
   }   ref
 
   struct {
      uint32_t   a
 
      uint32_t   b
 
   }   val
 
u
 

Detailed Description

An attribute can be either a buffer attribute or a value attribute. This is determined by bit [29] of the attribute identifier. If this bit is set to 0, then the attribute is a buffer attribute and the field ref must be selected. If the bit is set to 1, it is a value attribute and the field val must be selected.

Definition at line 335 of file m2mb_crypto.h.

Field Documentation

◆ a

uint32_t a

Value attribute a.

Definition at line 348 of file m2mb_crypto.h.

◆ attrib_id

uint32_t attrib_id

Attribute ID. See m2mb_crypto_attr_type_t.

Definition at line 336 of file m2mb_crypto.h.

◆ b

uint32_t b

Value attribute b.

Definition at line 350 of file m2mb_crypto.h.

◆ buf

void* buf

Buffer pointer.

Definition at line 341 of file m2mb_crypto.h.

◆ len

uint32_t len

Buffer length.

Definition at line 343 of file m2mb_crypto.h.

◆ ref

struct { ... } ref

Reference.

◆ u

union { ... } u

Reference/value union.

◆ val

struct { ... } val

Value.


The documentation for this struct was generated from the following file: