From: Nick Mathewson Date: Wed, 9 Nov 2011 03:54:52 +0000 (-0500) Subject: Stop using "u32" and "u8" in aes.c X-Git-Tag: tor-0.2.3.8-alpha~40 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7d8edfcceb05c6a85ed34090c87615624cdfb3af;p=thirdparty%2Ftor.git Stop using "u32" and "u8" in aes.c --- diff --git a/src/common/aes.c b/src/common/aes.c index ab8f7f6b29..c7e0aff362 100644 --- a/src/common/aes.c +++ b/src/common/aes.c @@ -43,12 +43,6 @@ # include #endif -/*======================================================================*/ -/* From rijndael-alg-fst.h */ - -typedef uint32_t u32; -typedef uint8_t u8; - /*======================================================================*/ /* Interface to AES code, and counter implementation */ @@ -65,27 +59,27 @@ struct aes_cnt_cipher { #define USING_COUNTER_VARS /** These four values, together, implement a 128-bit counter, with * counter0 as the low-order word and counter3 as the high-order word. */ - u32 counter3; - u32 counter2; - u32 counter1; - u32 counter0; + uint32_t counter3; + uint32_t counter2; + uint32_t counter1; + uint32_t counter0; #endif #ifndef USE_RIJNDAEL_COUNTER_OPTIMIZATION #define USING_COUNTER_BUFS union { /** The counter, in big-endian order, as bytes. */ - u8 buf[16]; + uint8_t buf[16]; /** The counter, in big-endian order, as big-endian words. Note that * on big-endian platforms, this is redundant with counter3...0, * so we just use these values instead. */ - u32 buf32[4]; + uint32_t buf32[4]; } ctr_buf; #endif /** The encrypted value of ctr_buf. */ - u8 buf[16]; + uint8_t buf[16]; /** Our current stream position within buf. */ - u8 pos; + uint8_t pos; }; #if !defined(USING_COUNTER_VARS)