Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/BLAKE2/BLAKE2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Neves <sneves@dei.uc.pt>2016-06-11 14:05:52 +0300
committerSamuel Neves <sneves@dei.uc.pt>2016-06-11 14:05:52 +0300
commit8a007c8cbb18d860f5e6491b150f7d3bd3c9c616 (patch)
treee2966bd31d9bb09ce1e709974a0e8de8f6b08841
parent86f24fed1052bbfa9f0739743678b66305ba3907 (diff)
consistent counter type
-rw-r--r--sse/blake2s.c6
-rw-r--r--sse/makefile2
2 files changed, 4 insertions, 4 deletions
diff --git a/sse/blake2s.c b/sse/blake2s.c
index d7cba9f..4f209ac 100644
--- a/sse/blake2s.c
+++ b/sse/blake2s.c
@@ -100,7 +100,7 @@ static void blake2s_increment_counter( blake2s_state *S, const uint32_t inc )
static void blake2s_init0( blake2s_state *S )
{
- int i;
+ size_t i;
memset( S, 0, sizeof( blake2s_state ) );
for( i = 0; i < 8; ++i ) S->h[i] = blake2s_IV[i];
@@ -109,7 +109,7 @@ static void blake2s_init0( blake2s_state *S )
/* init2 xors IV with input parameter block */
int blake2s_init_param( blake2s_state *S, const blake2s_param *P )
{
- int i;
+ size_t i;
/*blake2s_init0( S ); */
const uint8_t * v = ( const uint8_t * )( blake2s_IV );
const uint8_t * p = ( const uint8_t * )( P );
@@ -266,7 +266,7 @@ int blake2s_update( blake2s_state *S, const void *pin, size_t inlen )
int blake2s_final( blake2s_state *S, void *out, size_t outlen )
{
uint8_t buffer[BLAKE2S_OUTBYTES] = {0};
- int i;
+ size_t i;
if( outlen > BLAKE2S_OUTBYTES )
return -1;
diff --git a/sse/makefile b/sse/makefile
index 18631b4..a1e7e2a 100644
--- a/sse/makefile
+++ b/sse/makefile
@@ -1,5 +1,5 @@
CC=gcc
-CFLAGS=-Wall -O3 -march=native -I../testvectors
+CFLAGS=-O3 -march=native -I../testvectors
all: blake2s blake2b blake2sp blake2bp check