File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -702,6 +702,20 @@ mod fuzz_dummy {
702702//TODO secp256k1_ec_privkey_export
703703//TODO secp256k1_ec_privkey_import
704704
705+ pub unsafe fn secp256k1_ec_privkey_negate ( cx : * const Context ,
706+ sk : * mut c_uchar ) -> c_int {
707+ assert ! ( !cx. is_null( ) && ( * cx) . 0 as u32 & !( SECP256K1_START_NONE | SECP256K1_START_VERIFY | SECP256K1_START_SIGN ) == 0 ) ;
708+ if secp256k1_ec_seckey_verify ( cx, sk) != 1 { return 0 ; }
709+ 1
710+ }
711+
712+ pub unsafe fn secp256k1_ec_pubkey_negate ( cx : * const Context ,
713+ pk : * mut PublicKey ) -> c_int {
714+ assert ! ( !cx. is_null( ) && ( * cx) . 0 as u32 & !( SECP256K1_START_NONE | SECP256K1_START_VERIFY | SECP256K1_START_SIGN ) == 0 ) ;
715+ if test_pk_validate ( cx, pk) != 1 { return 0 ; }
716+ 1
717+ }
718+
705719 /// Copies the first 16 bytes of tweak into the last 16 bytes of sk
706720 pub unsafe fn secp256k1_ec_privkey_tweak_add ( cx : * const Context ,
707721 sk : * mut c_uchar ,
You can’t perform that action at this time.
0 commit comments