]> granicus.if.org Git - openssl/commitdiff
prevent warning
authorDr. Stephen Henson <steve@openssl.org>
Wed, 24 Feb 2010 15:24:19 +0000 (15:24 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 24 Feb 2010 15:24:19 +0000 (15:24 +0000)
crypto/evp/e_aes.c

index afc802b03a7c1f1cf954ed88ebd334a523a64b37..eacc306fb4087c98628925a143768d164cce8e42 100644 (file)
@@ -99,9 +99,11 @@ IMPLEMENT_AES_CFBR(256,8)
 static int aes_counter (EVP_CIPHER_CTX *ctx, unsigned char *out,
                const unsigned char *in, size_t len)
 {
+       unsigned int num;
        AES_ctr128_encrypt (in,out,len,
                &((EVP_AES_KEY *)ctx->cipher_data)->ks,
-               ctx->iv,ctx->buf,&ctx->num);
+               ctx->iv,ctx->buf,&num);
+       ctx->num = (size_t)num;
        return 1;
 }