File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -982,6 +982,7 @@ mod fuzz_dummy {
982
982
cx : * const Context ,
983
983
sig64 : * const c_uchar ,
984
984
msg32 : * const c_uchar ,
985
+ msglen : size_t ,
985
986
pubkey : * const XOnlyPublicKey ,
986
987
) -> c_int {
987
988
check_context_flags ( cx, SECP256K1_START_VERIFY ) ;
@@ -990,7 +991,7 @@ mod fuzz_dummy {
990
991
let _ = secp256k1_xonly_pubkey_tweak_add ( cx, & mut new_pk, pubkey, msg32) ;
991
992
// Actually verify
992
993
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 ) ;
994
995
if & sig_sl[ ..32 ] == msg_sl && sig_sl[ 32 ..] == ( * pubkey) . 0 [ ..32 ] {
995
996
1
996
997
} else {
@@ -1004,8 +1005,7 @@ mod fuzz_dummy {
1004
1005
sig64 : * mut c_uchar ,
1005
1006
msg32 : * const c_uchar ,
1006
1007
keypair : * const KeyPair ,
1007
- _noncefp : SchnorrNonceFn ,
1008
- _noncedata : * const c_void
1008
+ _aux_rand32 : * const c_uchar
1009
1009
) -> c_int {
1010
1010
check_context_flags ( cx, SECP256K1_START_SIGN ) ;
1011
1011
// Check context is built for signing
You can’t perform that action at this time.
0 commit comments