From 3f4cb139499c839247908e09506e454ccfd0fa9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 15 Apr 2008 07:56:44 +0000 Subject: [PATCH] Move the typedef u 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 --- lib/hcrypto/camellia-ntt.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/hcrypto/camellia-ntt.h b/lib/hcrypto/camellia-ntt.h index 6a27d8e35..645f8881e 100644 --- a/lib/hcrypto/camellia-ntt.h +++ b/lib/hcrypto/camellia-ntt.h @@ -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,