summaryrefslogtreecommitdiffstats
path: root/crypto/camellia/cmll_cfb.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2008-10-31 19:30:11 +0000
committerAndy Polyakov <appro@openssl.org>2008-10-31 19:30:11 +0000
commitf768be81d804d0467be4ad7163216c8381872b94 (patch)
treebcedfdc8d80fbf521deefa7f95d4aaef8f18f86c /crypto/camellia/cmll_cfb.c
parent91173829db3f10a5237ea28ed9e1c0c1f69cb05b (diff)
size_t-fy AES, Camellia and RC4.
Diffstat (limited to 'crypto/camellia/cmll_cfb.c')
-rw-r--r--crypto/camellia/cmll_cfb.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/crypto/camellia/cmll_cfb.c b/crypto/camellia/cmll_cfb.c
index af0f9f49ad..8eed2be9ea 100644
--- a/crypto/camellia/cmll_cfb.c
+++ b/crypto/camellia/cmll_cfb.c
@@ -124,12 +124,11 @@
*/
void Camellia_cfb128_encrypt(const unsigned char *in, unsigned char *out,
- const unsigned long length, const CAMELLIA_KEY *key,
+ size_t length, const CAMELLIA_KEY *key,
unsigned char *ivec, int *num, const int enc)
{
unsigned int n;
- unsigned long l = length;
unsigned char c;
assert(in && out && key && ivec && num);
@@ -138,7 +137,7 @@ void Camellia_cfb128_encrypt(const unsigned char *in, unsigned char *out,
if (enc)
{
- while (l--)
+ while (length--)
{
if (n == 0)
{
@@ -150,7 +149,7 @@ void Camellia_cfb128_encrypt(const unsigned char *in, unsigned char *out,
}
else
{
- while (l--)
+ while (length--)
{
if (n == 0)
{
@@ -202,10 +201,10 @@ void Camellia_cfbr_encrypt_block(const unsigned char *in,unsigned char *out,
/* N.B. This expects the input to be packed, MS bit first */
void Camellia_cfb1_encrypt(const unsigned char *in, unsigned char *out,
- const unsigned long length, const CAMELLIA_KEY *key,
+ size_t length, const CAMELLIA_KEY *key,
unsigned char *ivec, int *num, const int enc)
{
- unsigned int n;
+ size_t n;
unsigned char c[1],d[1];
assert(in && out && key && ivec && num);
@@ -221,10 +220,10 @@ void Camellia_cfb1_encrypt(const unsigned char *in, unsigned char *out,
}
void Camellia_cfb8_encrypt(const unsigned char *in, unsigned char *out,
- const unsigned long length, const CAMELLIA_KEY *key,
+ size_t length, const CAMELLIA_KEY *key,
unsigned char *ivec, int *num, const int enc)
{
- unsigned int n;
+ size_t n;
assert(in && out && key && ivec && num);
assert(*num == 0);