Newer
Older
AESLearning / secure_types.h
@Kurosawa Takayuki Kurosawa Takayuki on 17 Mar 2015 656 bytes transfer to linux
#ifndef __SECURE_TYPES__
#define __SECURE_TYPES__

typedef unsigned int   uint32;
typedef unsigned short uint16;
typedef unsigned char  uint8;

typedef unsigned int   uint;

typedef union u128 {
    uint8    uc[16];
    uint16   us[8];
    uint32   ul[4];
} u128;

typedef struct {
	u128 key;
	int counter;
	int key_flg;
} KEY_TABLE;

typedef uint32 IDATNUM;
typedef uint8  KEY_ID;
typedef u128 IDAT;
typedef u128 IV;
typedef u128 ODAT;
typedef uint32 KEY[4];
typedef u128 KEY128;
typedef uint32 KEY_FLG;
typedef uint32 M1;
typedef uint32 M2;
typedef uint32 M3;
typedef uint32 M4;
typedef uint32 M5;
typedef uint32 AUTHKEY_ID;

#endif/*__SECURE_TYPES__*/