diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/gost/gost2814789.c | 6 | ||||
| -rw-r--r-- | src/lib/libcrypto/gost/gostr341194.c | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/gost/streebog.c | 11 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/gost/gost2814789.c | 6 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/gost/gostr341194.c | 5 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/gost/streebog.c | 11 |
6 files changed, 24 insertions, 20 deletions
diff --git a/src/lib/libcrypto/gost/gost2814789.c b/src/lib/libcrypto/gost/gost2814789.c index 1c11ddd93e..e1084cb4ac 100644 --- a/src/lib/libcrypto/gost/gost2814789.c +++ b/src/lib/libcrypto/gost/gost2814789.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: gost2814789.c,v 1.2 2014/11/09 23:06:52 miod Exp $ */ | 1 | /* $OpenBSD: gost2814789.c,v 1.3 2014/12/07 16:33:51 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
| 4 | * Copyright (c) 2005-2006 Cryptocom LTD | 4 | * Copyright (c) 2005-2006 Cryptocom LTD |
| @@ -416,8 +416,8 @@ GOST2814789IMIT_Init(GOST2814789IMIT_CTX *c, int nid) | |||
| 416 | } | 416 | } |
| 417 | 417 | ||
| 418 | static void | 418 | static void |
| 419 | GOST2814789IMIT_block_data_order(GOST2814789IMIT_CTX *ctx, const void *p, | 419 | GOST2814789IMIT_block_data_order(GOST2814789IMIT_CTX *ctx, |
| 420 | size_t num) | 420 | const unsigned char *p, size_t num) |
| 421 | { | 421 | { |
| 422 | int i; | 422 | int i; |
| 423 | 423 | ||
diff --git a/src/lib/libcrypto/gost/gostr341194.c b/src/lib/libcrypto/gost/gostr341194.c index 3151d9fe12..34ca504bb2 100644 --- a/src/lib/libcrypto/gost/gostr341194.c +++ b/src/lib/libcrypto/gost/gostr341194.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: gostr341194.c,v 1.2 2014/11/09 23:06:52 miod Exp $ */ | 1 | /* $OpenBSD: gostr341194.c,v 1.3 2014/12/07 16:33:51 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
| 4 | * Copyright (c) 2005-2006 Cryptocom LTD | 4 | * Copyright (c) 2005-2006 Cryptocom LTD |
| @@ -207,7 +207,8 @@ GOSTR341194_Init(GOSTR341194_CTX *c, int nid) | |||
| 207 | } | 207 | } |
| 208 | 208 | ||
| 209 | static void | 209 | static void |
| 210 | GOSTR341194_block_data_order(GOSTR341194_CTX *ctx, const void *p, size_t num) | 210 | GOSTR341194_block_data_order(GOSTR341194_CTX *ctx, const unsigned char *p, |
| 211 | size_t num) | ||
| 211 | { | 212 | { |
| 212 | int i; | 213 | int i; |
| 213 | 214 | ||
diff --git a/src/lib/libcrypto/gost/streebog.c b/src/lib/libcrypto/gost/streebog.c index 4e49201c2d..8060161d11 100644 --- a/src/lib/libcrypto/gost/streebog.c +++ b/src/lib/libcrypto/gost/streebog.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: streebog.c,v 1.3 2014/12/07 16:07:56 miod Exp $ */ | 1 | /* $OpenBSD: streebog.c,v 1.4 2014/12/07 16:33:51 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
| 4 | * Copyright (c) 2005-2006 Cryptocom LTD | 4 | * Copyright (c) 2005-2006 Cryptocom LTD |
| @@ -1269,7 +1269,8 @@ streebog_single_block(STREEBOG_CTX *ctx, const unsigned char *in, size_t num) | |||
| 1269 | 1269 | ||
| 1270 | 1270 | ||
| 1271 | static void | 1271 | static void |
| 1272 | streebog_block_data_order(STREEBOG_CTX *ctx, const void *in, size_t num) | 1272 | streebog_block_data_order(STREEBOG_CTX *ctx, const unsigned char *in, |
| 1273 | size_t num) | ||
| 1273 | { | 1274 | { |
| 1274 | int i; | 1275 | int i; |
| 1275 | 1276 | ||
| @@ -1280,12 +1281,12 @@ streebog_block_data_order(STREEBOG_CTX *ctx, const void *in, size_t num) | |||
| 1280 | int | 1281 | int |
| 1281 | STREEBOG512_Final(unsigned char *md, STREEBOG_CTX *c) | 1282 | STREEBOG512_Final(unsigned char *md, STREEBOG_CTX *c) |
| 1282 | { | 1283 | { |
| 1283 | int n; | ||
| 1284 | unsigned char *p = (unsigned char *)c->data; | 1284 | unsigned char *p = (unsigned char *)c->data; |
| 1285 | STREEBOG_LONG64 Z[STREEBOG_LBLOCK] = {}; | 1285 | STREEBOG_LONG64 Z[STREEBOG_LBLOCK] = {0}; |
| 1286 | int n; | ||
| 1286 | 1287 | ||
| 1287 | if (c->num == STREEBOG_CBLOCK) { | 1288 | if (c->num == STREEBOG_CBLOCK) { |
| 1288 | streebog_block_data_order(c, c->data, 1); | 1289 | streebog_block_data_order(c, p, 1); |
| 1289 | c->num -= STREEBOG_CBLOCK; | 1290 | c->num -= STREEBOG_CBLOCK; |
| 1290 | } | 1291 | } |
| 1291 | 1292 | ||
diff --git a/src/lib/libssl/src/crypto/gost/gost2814789.c b/src/lib/libssl/src/crypto/gost/gost2814789.c index 1c11ddd93e..e1084cb4ac 100644 --- a/src/lib/libssl/src/crypto/gost/gost2814789.c +++ b/src/lib/libssl/src/crypto/gost/gost2814789.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: gost2814789.c,v 1.2 2014/11/09 23:06:52 miod Exp $ */ | 1 | /* $OpenBSD: gost2814789.c,v 1.3 2014/12/07 16:33:51 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
| 4 | * Copyright (c) 2005-2006 Cryptocom LTD | 4 | * Copyright (c) 2005-2006 Cryptocom LTD |
| @@ -416,8 +416,8 @@ GOST2814789IMIT_Init(GOST2814789IMIT_CTX *c, int nid) | |||
| 416 | } | 416 | } |
| 417 | 417 | ||
| 418 | static void | 418 | static void |
| 419 | GOST2814789IMIT_block_data_order(GOST2814789IMIT_CTX *ctx, const void *p, | 419 | GOST2814789IMIT_block_data_order(GOST2814789IMIT_CTX *ctx, |
| 420 | size_t num) | 420 | const unsigned char *p, size_t num) |
| 421 | { | 421 | { |
| 422 | int i; | 422 | int i; |
| 423 | 423 | ||
diff --git a/src/lib/libssl/src/crypto/gost/gostr341194.c b/src/lib/libssl/src/crypto/gost/gostr341194.c index 3151d9fe12..34ca504bb2 100644 --- a/src/lib/libssl/src/crypto/gost/gostr341194.c +++ b/src/lib/libssl/src/crypto/gost/gostr341194.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: gostr341194.c,v 1.2 2014/11/09 23:06:52 miod Exp $ */ | 1 | /* $OpenBSD: gostr341194.c,v 1.3 2014/12/07 16:33:51 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
| 4 | * Copyright (c) 2005-2006 Cryptocom LTD | 4 | * Copyright (c) 2005-2006 Cryptocom LTD |
| @@ -207,7 +207,8 @@ GOSTR341194_Init(GOSTR341194_CTX *c, int nid) | |||
| 207 | } | 207 | } |
| 208 | 208 | ||
| 209 | static void | 209 | static void |
| 210 | GOSTR341194_block_data_order(GOSTR341194_CTX *ctx, const void *p, size_t num) | 210 | GOSTR341194_block_data_order(GOSTR341194_CTX *ctx, const unsigned char *p, |
| 211 | size_t num) | ||
| 211 | { | 212 | { |
| 212 | int i; | 213 | int i; |
| 213 | 214 | ||
diff --git a/src/lib/libssl/src/crypto/gost/streebog.c b/src/lib/libssl/src/crypto/gost/streebog.c index 4e49201c2d..8060161d11 100644 --- a/src/lib/libssl/src/crypto/gost/streebog.c +++ b/src/lib/libssl/src/crypto/gost/streebog.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: streebog.c,v 1.3 2014/12/07 16:07:56 miod Exp $ */ | 1 | /* $OpenBSD: streebog.c,v 1.4 2014/12/07 16:33:51 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
| 4 | * Copyright (c) 2005-2006 Cryptocom LTD | 4 | * Copyright (c) 2005-2006 Cryptocom LTD |
| @@ -1269,7 +1269,8 @@ streebog_single_block(STREEBOG_CTX *ctx, const unsigned char *in, size_t num) | |||
| 1269 | 1269 | ||
| 1270 | 1270 | ||
| 1271 | static void | 1271 | static void |
| 1272 | streebog_block_data_order(STREEBOG_CTX *ctx, const void *in, size_t num) | 1272 | streebog_block_data_order(STREEBOG_CTX *ctx, const unsigned char *in, |
| 1273 | size_t num) | ||
| 1273 | { | 1274 | { |
| 1274 | int i; | 1275 | int i; |
| 1275 | 1276 | ||
| @@ -1280,12 +1281,12 @@ streebog_block_data_order(STREEBOG_CTX *ctx, const void *in, size_t num) | |||
| 1280 | int | 1281 | int |
| 1281 | STREEBOG512_Final(unsigned char *md, STREEBOG_CTX *c) | 1282 | STREEBOG512_Final(unsigned char *md, STREEBOG_CTX *c) |
| 1282 | { | 1283 | { |
| 1283 | int n; | ||
| 1284 | unsigned char *p = (unsigned char *)c->data; | 1284 | unsigned char *p = (unsigned char *)c->data; |
| 1285 | STREEBOG_LONG64 Z[STREEBOG_LBLOCK] = {}; | 1285 | STREEBOG_LONG64 Z[STREEBOG_LBLOCK] = {0}; |
| 1286 | int n; | ||
| 1286 | 1287 | ||
| 1287 | if (c->num == STREEBOG_CBLOCK) { | 1288 | if (c->num == STREEBOG_CBLOCK) { |
| 1288 | streebog_block_data_order(c, c->data, 1); | 1289 | streebog_block_data_order(c, p, 1); |
| 1289 | c->num -= STREEBOG_CBLOCK; | 1290 | c->num -= STREEBOG_CBLOCK; |
| 1290 | } | 1291 | } |
| 1291 | 1292 | ||
