diff options
author | Andy Polyakov <appro@openssl.org> | 2008-12-23 12:18:45 +0100 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2008-12-23 12:18:45 +0100 |
commit | 63fc7f848d4e047c3bd0f4a1c7e843191b2e9f0a (patch) | |
tree | 05e99736ef10da0618bced732fe626753da282ed /crypto/modes/ctr128.c | |
parent | Optimize CAST for size on 64-bit platforms. For reference, CAST_LONG being (diff) | |
download | openssl-63fc7f848d4e047c3bd0f4a1c7e843191b2e9f0a.tar.xz openssl-63fc7f848d4e047c3bd0f4a1c7e843191b2e9f0a.zip |
crypto/modes: make modes.h selfsufficient and rename block_f to block128_t.
Diffstat (limited to 'crypto/modes/ctr128.c')
-rw-r--r-- | crypto/modes/ctr128.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/modes/ctr128.c b/crypto/modes/ctr128.c index db79c76d39..bd84f41528 100644 --- a/crypto/modes/ctr128.c +++ b/crypto/modes/ctr128.c @@ -48,7 +48,7 @@ * */ -#include <stddef.h> +#include "modes.h" #include <string.h> #ifndef MODES_DEBUG @@ -58,8 +58,6 @@ #endif #include <assert.h> -#include "modes.h" - typedef unsigned int u32; typedef unsigned char u8; @@ -128,7 +126,7 @@ static void ctr128_inc_aligned(unsigned char *counter) { void CRYPTO_ctr128_encrypt(const unsigned char *in, unsigned char *out, size_t len, const void *key, unsigned char ivec[16], unsigned char ecount_buf[16], - unsigned int *num, block_f block) + unsigned int *num, block128_f block) { unsigned int n; size_t l=0; |