mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-24 07:18:09 +00:00
Merge pull request #34 from JohnDvorak/patch-1
Change return value of ecdsa_sign_digest
This commit is contained in:
commit
0983c6c456
2
ecdsa.c
2
ecdsa.c
@ -745,7 +745,7 @@ int ecdsa_sign_digest(const uint8_t *priv_key, const uint8_t *digest, uint8_t *s
|
|||||||
MEMSET_BZERO(&k, sizeof(k));
|
MEMSET_BZERO(&k, sizeof(k));
|
||||||
MEMSET_BZERO(&z, sizeof(z));
|
MEMSET_BZERO(&z, sizeof(z));
|
||||||
MEMSET_BZERO(&R, sizeof(R));
|
MEMSET_BZERO(&R, sizeof(R));
|
||||||
return 0;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ecdsa_get_public_key33(const uint8_t *priv_key, uint8_t *pub_key)
|
void ecdsa_get_public_key33(const uint8_t *priv_key, uint8_t *pub_key)
|
||||||
|
Loading…
Reference in New Issue
Block a user