Skip to content

Commit 43370d8

Browse files
committed
Add secp256k1_schnorrsig_sign_custom in fuzzing config
1 parent 748dcd9 commit 43370d8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

secp256k1-sys/src/lib.rs

+13
Original file line numberDiff line numberDiff line change
@@ -1315,6 +1315,19 @@ mod fuzz_dummy {
13151315
1
13161316
}
13171317

1318+
1319+
// Forwards to regular schnorrsig_sign function.
1320+
pub unsafe fn secp256k1_schnorrsig_sign_custom(
1321+
cx: *const Context,
1322+
sig: *mut c_uchar,
1323+
msg: *const c_uchar,
1324+
_msg_len: size_t,
1325+
keypair: *const KeyPair,
1326+
_extra_params: *const SchnorrSigExtraParams,
1327+
) -> c_int {
1328+
secp256k1_schnorrsig_sign(cx, sig, msg, keypair, ptr::null())
1329+
}
1330+
13181331
// Extra keys
13191332
pub unsafe fn secp256k1_keypair_create(
13201333
cx: *const Context,

0 commit comments

Comments
 (0)