Move the typedef u<num> to camellia-ntt.h header file. Use u32 to
define KEY_TABLE_TYPE, avoids warning on platfors where u32 is not unsigned int. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22968 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -36,7 +36,11 @@ extern "C" {
|
||||
#define CAMELLIA_TABLE_BYTE_LEN 272
|
||||
#define CAMELLIA_TABLE_WORD_LEN (CAMELLIA_TABLE_BYTE_LEN / 4)
|
||||
|
||||
typedef unsigned int KEY_TABLE_TYPE[CAMELLIA_TABLE_WORD_LEN];
|
||||
/* u32 must be 32bit word */
|
||||
typedef uint32_t u32;
|
||||
typedef unsigned char u8;
|
||||
|
||||
typedef u32 KEY_TABLE_TYPE[CAMELLIA_TABLE_WORD_LEN];
|
||||
|
||||
|
||||
void Camellia_Ekeygen(const int keyBitLength,
|
||||
|
Reference in New Issue
Block a user