diff options
Diffstat (limited to 'modules/benchmark/blowfish2.c')
-rw-r--r-- | modules/benchmark/blowfish2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/benchmark/blowfish2.c b/modules/benchmark/blowfish2.c index 7426bef9..b60dd52c 100644 --- a/modules/benchmark/blowfish2.c +++ b/modules/benchmark/blowfish2.c @@ -30,7 +30,7 @@ static gpointer bfish_exec(const void *in_data, gint thread_number) { - unsigned char key[] = BLOW_KEY; + char key[] = BLOW_KEY; unsigned char *data = NULL; unsigned long data_len = BENCH_DATA_SIZE, i = 0; BLOWFISH_CTX ctx; @@ -38,7 +38,7 @@ static gpointer bfish_exec(const void *in_data, gint thread_number) data = malloc(BENCH_DATA_SIZE); memcpy(data, in_data, BENCH_DATA_SIZE); - Blowfish_Init(&ctx, key, strlen(key)); + Blowfish_Init(&ctx, (guchar *)key, strlen(key)); for(i = 0; i < data_len; i += 8) { Blowfish_Encrypt(&ctx, (unsigned long*)&data[i], (unsigned long*)&data[i+4]); } |