Skip to content

Commit 9a0cf1f

Browse files
committed
update fuzzdummy API to match normal API
1 parent 5e8b836 commit 9a0cf1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

secp256k1-sys/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,7 @@ mod fuzz_dummy {
982982
cx: *const Context,
983983
sig64: *const c_uchar,
984984
msg32: *const c_uchar,
985+
msglen: size_t,
985986
pubkey: *const XOnlyPublicKey,
986987
) -> c_int {
987988
check_context_flags(cx, SECP256K1_START_VERIFY);
@@ -990,7 +991,7 @@ mod fuzz_dummy {
990991
let _ = secp256k1_xonly_pubkey_tweak_add(cx, &mut new_pk, pubkey, msg32);
991992
// Actually verify
992993
let sig_sl = slice::from_raw_parts(sig64 as *const u8, 64);
993-
let msg_sl = slice::from_raw_parts(msg32 as *const u8, 32);
994+
let msg_sl = slice::from_raw_parts(msg32 as *const u8, msglen);
994995
if &sig_sl[..32] == msg_sl && sig_sl[32..] == (*pubkey).0[..32] {
995996
1
996997
} else {
@@ -1004,8 +1005,7 @@ mod fuzz_dummy {
10041005
sig64: *mut c_uchar,
10051006
msg32: *const c_uchar,
10061007
keypair: *const KeyPair,
1007-
_noncefp: SchnorrNonceFn,
1008-
_noncedata: *const c_void
1008+
_aux_rand32: *const c_uchar
10091009
) -> c_int {
10101010
check_context_flags(cx, SECP256K1_START_SIGN);
10111011
// Check context is built for signing

0 commit comments

Comments
 (0)