Skip to content

Commit

Permalink
Merge pull request wolfSSL#17 from abrahamsonn/wc_ecc_sign-verify_hash
Browse files Browse the repository at this point in the history
mismatch b/w digest and size when calling wc_ecc_verify_hash
  • Loading branch information
cconlon committed Jul 26, 2017
2 parents 64d7752 + db11f06 commit 9e32fb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuzzers/libFuzzer/wc_ecc_sign-verify_hash/target.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
wc_ecc_make_key(&rng, (521/8), &key);

wc_ecc_sign_hash(data, size, encrypted_out, &encrypted_out_size, &rng, &key);
wc_ecc_verify_hash(encrypted_out, encrypted_out_size, data, (521 / 8), &verify, &key);
wc_ecc_verify_hash(encrypted_out, encrypted_out_size, data, size, &verify, &key);

wc_FreeRng(&rng);
wc_ecc_free(&key);
Expand Down

0 comments on commit 9e32fb3

Please sign in to comment.