diff options
author | Andy Polyakov <appro@openssl.org> | 2008-10-31 20:20:54 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2008-10-31 20:20:54 +0000 |
commit | 09a60c9833fa6800230e23a7e42a48832792e629 (patch) | |
tree | 63c43be78c50aa1abd8151d75c98a1300c859b15 /engines | |
parent | b444ac3e6f04aec13aa0c19983291b0326feb7f9 (diff) |
Fix warnings after commit#17578.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/ccgost/gost_crypt.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/ccgost/gost_crypt.c b/engines/ccgost/gost_crypt.c index d115d0bf3b..eb15895a69 100644 --- a/engines/ccgost/gost_crypt.c +++ b/engines/ccgost/gost_crypt.c @@ -17,10 +17,10 @@ static int gost_cipher_init_cpa(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc); /* Handles block of data in CFB mode */ static int gost_cipher_do_cfb(EVP_CIPHER_CTX *ctx, unsigned char *out, - const unsigned char *in, unsigned int inl); + const unsigned char *in, size_t inl); /* Handles block of data in CNT mode */ static int gost_cipher_do_cnt(EVP_CIPHER_CTX *ctx, unsigned char *out, - const unsigned char *in, unsigned int inl); + const unsigned char *in, size_t inl); /* Cleanup function */ static int gost_cipher_cleanup(EVP_CIPHER_CTX *); /* set/get cipher parameters */ @@ -253,12 +253,12 @@ static void gost_cnt_next (void *ctx, unsigned char *iv, unsigned char *buf) /* GOST encryption in CFB mode */ int gost_cipher_do_cfb(EVP_CIPHER_CTX *ctx, unsigned char *out, - const unsigned char *in, unsigned int inl) + const unsigned char *in, size_t inl) { const unsigned char *in_ptr=in; unsigned char *out_ptr=out; - unsigned int i=0; - unsigned int j=0; + size_t i=0; + size_t j=0; /* process partial block if any */ if (ctx->num) { @@ -315,12 +315,12 @@ int gost_cipher_do_cfb(EVP_CIPHER_CTX *ctx, unsigned char *out, } static int gost_cipher_do_cnt(EVP_CIPHER_CTX *ctx, unsigned char *out, - const unsigned char *in, unsigned int inl) + const unsigned char *in, size_t inl) { const unsigned char *in_ptr=in; unsigned char *out_ptr=out; - unsigned int i=0; - unsigned int j; + size_t i=0; + size_t j; /* process partial block if any */ if (ctx->num) { |