1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 23:08:14 +00:00

vendor: update trezor-crypto

This commit is contained in:
Pavol Rusnak 2018-09-13 15:01:58 +02:00
parent 14b1a04b0a
commit 4ac99f3470
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
3 changed files with 3 additions and 3 deletions

View File

@ -163,7 +163,7 @@ int cryptoMessageVerify(const CoinInfo *coin, const uint8_t *message, size_t mes
// check if signature verifies the digest and recover the public key
uint8_t pubkey[65];
if (ecdsa_verify_digest_recover(coin->curve->params, pubkey, signature + 1, hash, recid) != 0) {
if (ecdsa_recover_pub_from_sig(coin->curve->params, pubkey, signature + 1, hash, recid) != 0) {
return 3;
}
// convert public key to compressed pubkey if necessary

View File

@ -687,7 +687,7 @@ int ethereum_message_verify(EthereumVerifyMessage *msg)
v -= 27;
}
if (v >= 2 ||
ecdsa_verify_digest_recover(&secp256k1, pubkey, msg->signature.bytes, hash, v) != 0) {
ecdsa_recover_pub_from_sig(&secp256k1, pubkey, msg->signature.bytes, hash, v) != 0) {
return 2;
}

@ -1 +1 @@
Subproject commit b679a6b2a73ed8adfe236cfa0ba73c5d86661633
Subproject commit f9523f97df2c965835001d551738bbe1b93b53df