From c286cd75f3e5695cb5b9d6ac7bcfb6fdfd7791a2 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Tue, 17 Mar 2015 14:23:58 +0100 Subject: [PATCH] bn_substract_noprime -> bn_subtract --- firmware/crypto.c | 2 +- trezor-crypto | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/crypto.c b/firmware/crypto.c index 9015b462fe..a78aa4002e 100644 --- a/firmware/crypto.c +++ b/firmware/crypto.c @@ -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); diff --git a/trezor-crypto b/trezor-crypto index cb9ccc5cf4..e37ba822e6 160000 --- a/trezor-crypto +++ b/trezor-crypto @@ -1 +1 @@ -Subproject commit cb9ccc5cf4ea3992172f31e8d1506f1a5b791157 +Subproject commit e37ba822e627550a453a1678d180f7e056b3d98f