#define UBI_TYPE_KEY 0
#define UBI_TYPE_CFG 4
#define UBI_TYPE_PRS 8
#define UBI_TYPE_PK 12
#define UBI_TYPE_KDF 16
#define UBI_TYPE_NON 20
#define UBI_TYPE_MSG 48
#define UBI_TYPE_OUT 63
#define UBI256_BLOCKSIZE 256
#define UBI256_BLOCKSIZE_B
#define UBI512_BLOCKSIZE 512
#define UBI512_BLOCKSIZE_B
#define UBI1024_BLOCKSIZE 1024
#define UBI1024_BLOCKSIZE_B
struct | |
{ | |
union | |
{ | |
uint8_t v8[16]; | |
uint16_t v16[8]; | |
uint32_t v32[4]; | |
uint64_t v64[2]; | |
} | |
tweak; | |
uint8_t g[32]; | |
} |
struct | |
{ | |
union | |
{ | |
uint8_t v8[16]; | |
uint16_t v16[8]; | |
uint32_t v32[4]; | |
uint64_t v64[2]; | |
} | |
tweak; | |
uint8_t g[64]; | |
} |
struct | |
{ | |
union | |
{ | |
uint8_t v8[16]; | |
uint16_t v16[8]; | |
uint32_t v32[4]; | |
uint64_t v64[2]; | |
} | |
tweak; | |
uint8_t g[128]; | |
} |
struct | |
{ | |
char schema[4]; | |
uint16_t version; | |
uint16_t reserved1; | |
uint64_t out_length; | |
uint8_t tree_leaf_size; | |
uint8_t tree_fan_out; | |
uint8_t tree_max_height; | |
uint8_t reserved2[13]; | |
} |