From a5a4333a8e5cb2dbc7460dead15173cd4a0fac44 Mon Sep 17 00:00:00 2001 From: Oleg Andreev Date: Mon, 30 Mar 2015 17:25:34 +0200 Subject: [PATCH] typo fix (no, this was not a bug) --- ecdsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecdsa.c b/ecdsa.c index 0c5b5a625b..e910a03f55 100644 --- a/ecdsa.c +++ b/ecdsa.c @@ -277,7 +277,7 @@ int generate_k_rfc6979(bignum256 *secret, const uint8_t *priv_key, const uint8_t buf[sizeof(v)] = 0x01; memcpy(buf + sizeof(v) + 1, bx, 64); hmac_sha256(k, sizeof(k), buf, sizeof(buf), k); - hmac_sha256(k, sizeof(k), v, sizeof(k), v); + hmac_sha256(k, sizeof(k), v, sizeof(v), v); for (i = 0; i < 10000; i++) { hmac_sha256(k, sizeof(k), v, sizeof(v), v);