summaryrefslogtreecommitdiffstats
path: root/crypto/camellia/cmll_cfb.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2008-10-28 08:47:24 +0000
committerAndy Polyakov <appro@openssl.org>2008-10-28 08:47:24 +0000
commit27f864e8acd4c495f94363af3074861576af303f (patch)
tree9db6efbb80495e2d008cf9148be487a970ef31ca /crypto/camellia/cmll_cfb.c
parent80aa9cc985251463a3ad65b0a4d64bf93c70b175 (diff)
Camellia update. Quoting camellia.c:
/* * This release balances code size and performance. In particular key * schedule setup is fully unrolled, because doing so *significantly* * reduces amount of instructions per setup round and code increase is * justifiable. In block functions on the other hand only inner loops * are unrolled, as full unroll gives only nominal performance boost, * while code size grows 4 or 7 times. Also, unlike previous versions * this one "encourages" compiler to keep intermediate variables in * registers, which should give better "all round" results, in other * words reasonable performance even with not so modern compilers. */
Diffstat (limited to 'crypto/camellia/cmll_cfb.c')
-rw-r--r--crypto/camellia/cmll_cfb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/camellia/cmll_cfb.c b/crypto/camellia/cmll_cfb.c
index 1b02bebd52..af0f9f49ad 100644
--- a/crypto/camellia/cmll_cfb.c
+++ b/crypto/camellia/cmll_cfb.c
@@ -173,7 +173,7 @@ void Camellia_cfbr_encrypt_block(const unsigned char *in,unsigned char *out,
unsigned char *ivec,const int enc)
{
int n,rem,num;
- unsigned char ovec[CAMELLIA_BLOCK_SIZE*2 + 1]; /* +1 because we dereference (but don't use) one byte beyond the end */
+ unsigned char ovec[CAMELLIA_BLOCK_SIZE*2];
if (nbits<=0 || nbits>128) return;