Newer
Older
AESLearning / secure_types.h
@Kurosawa Takayuki Kurosawa Takayuki on 17 Mar 2015 614 bytes first release, just tools
#ifndef __SECURE_TYPES__
#define __SECURE_TYPES__

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

typedef unsigned int   uint;

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

typedef uint32 IDATNUM;
typedef uint8  KEY_ID;
typedef union u128 IDAT;
typedef union u128 IV;
typedef union u128 ODAT;
typedef uint32 KEY;
typedef union u128 KEY128;
typedef uint32 KEY_FLG;
typedef uint32 M1;
typedef uint32 M2;
typedef uint32 M3;
typedef uint32 M4;
typedef uint32 M5;
typedef uint32 UID;
typedef uint32 AUTHKEY_ID;

#endif/*__SECURE_TYPES__*/