File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -41,16 +41,17 @@ pub type NonceFn = unsafe extern "C" fn(nonce32: *mut c_uchar,
41
41
msg32 : * const c_uchar ,
42
42
key32 : * const c_uchar ,
43
43
algo16 : * const c_uchar ,
44
+ data : * mut c_void ,
44
45
attempt : c_uint ,
45
- data : * const c_void ) ;
46
+ ) ;
46
47
47
48
/// Hash function to use to post-process an ECDH point to get
48
49
/// a shared secret.
49
50
pub type EcdhHashFn = unsafe extern "C" fn (
50
51
output : * mut c_uchar ,
51
52
x : * const c_uchar ,
52
53
y : * const c_uchar ,
53
- data : * const c_void ,
54
+ data : * mut c_void ,
54
55
) ;
55
56
56
57
/// A Secp256k1 context, containing various precomputed values and such
@@ -186,7 +187,7 @@ extern "C" {
186
187
out_len : * mut usize , sig : * const Signature )
187
188
-> c_int ;
188
189
189
- pub fn secp256k1_ecdsa_signature_serialize_compact ( cx : * const Context , output64 : * const c_uchar ,
190
+ pub fn secp256k1_ecdsa_signature_serialize_compact ( cx : * const Context , output64 : * mut c_uchar ,
190
191
sig : * const Signature )
191
192
-> c_int ;
192
193
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ extern "C" {
45
45
input64 : * const c_uchar , recid : c_int )
46
46
-> c_int ;
47
47
48
- pub fn secp256k1_ecdsa_recoverable_signature_serialize_compact ( cx : * const Context , output64 : * const c_uchar ,
48
+ pub fn secp256k1_ecdsa_recoverable_signature_serialize_compact ( cx : * const Context , output64 : * mut c_uchar ,
49
49
recid : * mut c_int , sig : * const RecoverableSignature )
50
50
-> c_int ;
51
51
@@ -82,7 +82,7 @@ mod fuzz_dummy {
82
82
unimplemented ! ( ) ;
83
83
}
84
84
85
- pub unsafe fn secp256k1_ecdsa_recoverable_signature_serialize_compact ( _cx : * const Context , _output64 : * const c_uchar ,
85
+ pub unsafe fn secp256k1_ecdsa_recoverable_signature_serialize_compact ( _cx : * const Context , _output64 : * mut c_uchar ,
86
86
_recid : * mut c_int , _sig : * const RecoverableSignature )
87
87
-> c_int {
88
88
unimplemented ! ( ) ;
You can’t perform that action at this time.
0 commit comments