mirror of
https://github.com/kmackay/micro-ecc.git
synced 2026-10-20 22:48:12 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user