1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-17 19:00:58 +00:00

typo fix (no, this was not a bug)

This commit is contained in:
Oleg Andreev 2015-03-30 17:25:34 +02:00
parent d4df66a8d0
commit a5a4333a8e

View File

@ -277,7 +277,7 @@ int generate_k_rfc6979(bignum256 *secret, const uint8_t *priv_key, const uint8_t
buf[sizeof(v)] = 0x01; buf[sizeof(v)] = 0x01;
memcpy(buf + sizeof(v) + 1, bx, 64); memcpy(buf + sizeof(v) + 1, bx, 64);
hmac_sha256(k, sizeof(k), buf, sizeof(buf), k); 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++) { for (i = 0; i < 10000; i++) {
hmac_sha256(k, sizeof(k), v, sizeof(v), v); hmac_sha256(k, sizeof(k), v, sizeof(v), v);