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

Change return value of ecdsa_sign_digest

Error codes were not being propagated, always returned as 0.
This commit is contained in:
John Dvorak 2015-06-18 09:55:12 -04:00
parent c58d4e03c5
commit 85cebfe968

View File

@ -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(&z, sizeof(z));
MEMSET_BZERO(&R, sizeof(R));
return 0;
return result;
}
void ecdsa_get_public_key33(const uint8_t *priv_key, uint8_t *pub_key)