summaryrefslogtreecommitdiffstats
path: root/crypto/camellia/cmll_misc.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2006-12-02 11:12:13 +0000
committerAndy Polyakov <appro@openssl.org>2006-12-02 11:12:13 +0000
commit9f8cfb1c62c31a3e94d6cbbbbe7d0afda2c7fe97 (patch)
tree9958e9d29e6b1f6487fa4ec72d1d1b42cf65248b /crypto/camellia/cmll_misc.c
parentc163b5f7a00eca3a7fd776456a0ff92bbc93f225 (diff)
Improve Camellia code readability.
Diffstat (limited to 'crypto/camellia/cmll_misc.c')
-rw-r--r--crypto/camellia/cmll_misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/camellia/cmll_misc.c b/crypto/camellia/cmll_misc.c
index c9c26e248a..63c7fd63fc 100644
--- a/crypto/camellia/cmll_misc.c
+++ b/crypto/camellia/cmll_misc.c
@@ -91,7 +91,7 @@ int Camellia_set_key(const unsigned char *userKey, const int bits,
void Camellia_encrypt(const unsigned char *in, unsigned char *out,
const CAMELLIA_KEY *key)
{
- u32 tmp[UNITSIZE];
+ u32 tmp[CAMELLIA_BLOCK_SIZE/sizeof(u32)];
const union { long one; char little; } camellia_endian = {1};
memcpy(tmp, in, CAMELLIA_BLOCK_SIZE);
@@ -104,7 +104,7 @@ void Camellia_encrypt(const unsigned char *in, unsigned char *out,
void Camellia_decrypt(const unsigned char *in, unsigned char *out,
const CAMELLIA_KEY *key)
{
- u32 tmp[UNITSIZE];
+ u32 tmp[CAMELLIA_BLOCK_SIZE/sizeof(u32)];
const union { long one; char little; } camellia_endian = {1};
memcpy(tmp, in, CAMELLIA_BLOCK_SIZE);