File nut/include/contrib/crypto/ubi.h


Included Files


Preprocessor definitions

#define UBI_H_

#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


Typedef ubi256_ctx_t

typedef struct {...} ubi256_ctx_t
struct  
   {  
      union  
        {  
            uint8_t v8[16];  
            uint16_t v16[8];  
            uint32_t v32[4];  
            uint64_t v64[2];  
        }  
     tweak;  
      uint8_t g[32];  
   }  

Typedef ubi512_ctx_t

typedef struct {...} ubi512_ctx_t
struct  
   {  
      union  
        {  
            uint8_t v8[16];  
            uint16_t v16[8];  
            uint32_t v32[4];  
            uint64_t v64[2];  
        }  
     tweak;  
      uint8_t g[64];  
   }  

Typedef ubi1024_ctx_t

typedef struct {...} ubi1024_ctx_t
struct  
   {  
      union  
        {  
            uint8_t v8[16];  
            uint16_t v16[8];  
            uint32_t v32[4];  
            uint64_t v64[2];  
        }  
     tweak;  
      uint8_t g[128];  
   }  

Typedef skein_config_t

typedef struct {...} skein_config_t
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];  
   }