test_ecdsa_deterministic: add hash size argument

This was changed in commit

    0283b542 Convert hash to int in sign/verify (#53)
This commit is contained in:
Andrew Ruder
2015-12-23 10:22:53 -06:00
parent 0e249d974a
commit 584d13e91f
+2 -2
View File
@@ -76,12 +76,12 @@ int main() {
}
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;
}