]> www.wagner.pp.ru Git - openssl-gost/engine.git/blobdiff - gosthash2012.c
cppcheck: The scope of the variable can be reduced.
[openssl-gost/engine.git] / gosthash2012.c
index 60fa43696b6bd2efd0c7198d836b183c00a38d11..9548bfb5492318313b83e631256479bbc4d43cc8 100644 (file)
@@ -195,7 +195,6 @@ static INLINE void stage3(gost2012_hash_ctx * CTX)
 void gost2012_hash_block(gost2012_hash_ctx * CTX,
                          const unsigned char *data, size_t len)
 {
-    register size_t chunksize;
     register size_t bufsize = CTX->bufsize;
 
     if (bufsize == 0) {
@@ -208,7 +207,7 @@ void gost2012_hash_block(gost2012_hash_ctx * CTX,
     }
 
     while (len) {
-        chunksize = 64 - bufsize;
+        register size_t chunksize = 64 - bufsize;
         if (chunksize > len)
             chunksize = len;