test_ecdsa_deterministic: add hash size argument
This was changed in commit
0283b542 Convert hash to int in sign/verify (#53)
diff --git a/test/test_ecdsa_deterministic.c.example b/test/test_ecdsa_deterministic.c.example
index 5e5cde0..e9c4ef1 100644
--- a/test/test_ecdsa_deterministic.c.example
+++ b/test/test_ecdsa_deterministic.c.example
@@ -76,12 +76,12 @@
}
memcpy(hash, public, sizeof(hash));
- if (!uECC_sign_deterministic(private, hash, &ctx.uECC, sig, curves[c])) {
+ if (!uECC_sign_deterministic(private, hash, sizeof(hash), &ctx.uECC, sig, curves[c])) {
printf("uECC_sign() failed\n");
return 1;
}
- if (!uECC_verify(public, hash, sig, curves[c])) {
+ if (!uECC_verify(public, hash, sizeof(hash), sig, curves[c])) {
printf("uECC_verify() failed\n");
return 1;
}