1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-03 12:00:59 +00:00

bn_substract_noprime -> bn_subtract

This commit is contained in:
Pavol Rusnak 2015-03-17 14:23:58 +01:00
parent fb2a085fff
commit c286cd75f3
2 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ int cryptoMessageVerify(const uint8_t *message, size_t message_len, const uint8_
sha256_Raw(hash, 32, hash);
// e = -hash
bn_read_be(hash, &e);
bn_substract_noprime(&order256k1, &e, &e);
bn_subtract(&order256k1, &e, &e);
// r = r^-1
bn_inverse(&r, &order256k1);
point_multiply(&s, &cp, &cp);

@ -1 +1 @@
Subproject commit cb9ccc5cf4ea3992172f31e8d1506f1a5b791157
Subproject commit e37ba822e627550a453a1678d180f7e056b3d98f