summaryrefslogtreecommitdiffstats
path: root/crypto/camellia/cmll_ofb.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/camellia/cmll_ofb.c')
-rw-r--r--crypto/camellia/cmll_ofb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/crypto/camellia/cmll_ofb.c b/crypto/camellia/cmll_ofb.c
index d89cf9f3b3..1646fc0ce7 100644
--- a/crypto/camellia/cmll_ofb.c
+++ b/crypto/camellia/cmll_ofb.c
@@ -119,17 +119,16 @@
* 128bit block we have used is contained in *num;
*/
void Camellia_ofb128_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) {
unsigned int n;
- unsigned long l=length;
assert(in && out && key && ivec && num);
n = *num;
- while (l--) {
+ while (length--) {
if (n == 0) {
Camellia_encrypt(ivec, ivec, key);
}