Added test for deterministic ECDSA (#37)

This commit is contained in:
Ken MacKay
2015-06-15 21:41:39 -07:00
parent 9abcb90061
commit 67d0733f51
2 changed files with 105 additions and 1 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ void SHA256_finish(uECC_HashContext *base, uint8_t *hash_result) {
... when signing ...
{
SHA256_HashContext ctx = {{&SHA256_init, &SHA256_update, &SHA256_finish}};
uECC_sign_deterministic(key, message_hash, &ctx, signature);
uECC_sign_deterministic(key, message_hash, &ctx.uECC, signature);
}
*/
typedef struct uECC_HashContext {