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

Merge pull request #34 from JohnDvorak/patch-1

Change return value of ecdsa_sign_digest
This commit is contained in:
Pavol Rusnak 2015-06-18 15:58:12 +02:00
commit 0983c6c456

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(&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)