103103//! 0xc9, 0x42, 0x8f, 0xca, 0x69, 0xc1, 0x32, 0xa2,
104104//! ]).expect("compact signatures are 64 bytes; DER signatures are 68-72 bytes");
105105//!
106- //! # #[cfg(not(rust_secp_fuzz ))]
106+ //! # #[cfg(not(fuzzing ))]
107107//! assert!(secp.verify(&message, &sig, &public_key).is_ok());
108108//! ```
109109//!
@@ -744,7 +744,7 @@ impl<C: Signing> Secp256k1<C> {
744744 entropy_p = extra_entropy. as_ptr ( ) as * const ffi:: types:: c_void ;
745745
746746 // When fuzzing, these checks will usually spinloop forever, so just short-circuit them.
747- #[ cfg( rust_secp_fuzz ) ]
747+ #[ cfg( fuzzing ) ]
748748 return Signature :: from ( ret) ;
749749 }
750750 }
@@ -1108,12 +1108,12 @@ mod tests {
11081108 if compact[ 0 ] < 0x80 {
11091109 assert_eq ! ( sig, low_r_sig) ;
11101110 } else {
1111- #[ cfg( not( rust_secp_fuzz ) ) ] // mocked sig generation doesn't produce low-R sigs
1111+ #[ cfg( not( fuzzing ) ) ] // mocked sig generation doesn't produce low-R sigs
11121112 assert_ne ! ( sig, low_r_sig) ;
11131113 }
1114- #[ cfg( not( rust_secp_fuzz ) ) ] // mocked sig generation doesn't produce low-R sigs
1114+ #[ cfg( not( fuzzing ) ) ] // mocked sig generation doesn't produce low-R sigs
11151115 assert ! ( super :: compact_sig_has_zero_first_bit( & low_r_sig. 0 ) ) ;
1116- #[ cfg( not( rust_secp_fuzz ) ) ] // mocked sig generation doesn't produce low-R sigs
1116+ #[ cfg( not( fuzzing ) ) ] // mocked sig generation doesn't produce low-R sigs
11171117 assert ! ( super :: der_length_check( & grind_r_sig. 0 , 70 ) ) ;
11181118 }
11191119 }
@@ -1186,7 +1186,7 @@ mod tests {
11861186 }
11871187
11881188 #[ test]
1189- #[ cfg( not( rust_secp_fuzz ) ) ] // fixed sig vectors can't work with fuzz-sigs
1189+ #[ cfg( not( fuzzing ) ) ] // fixed sig vectors can't work with fuzz-sigs
11901190 fn test_low_s ( ) {
11911191 // nb this is a transaction on testnet
11921192 // txid 8ccc87b72d766ab3128f03176bb1c98293f2d1f85ebfaf07b82cc81ea6891fa9
@@ -1208,7 +1208,7 @@ mod tests {
12081208 }
12091209
12101210 #[ test]
1211- #[ cfg( not( rust_secp_fuzz ) ) ] // fuzz-sigs have fixed size/format
1211+ #[ cfg( not( fuzzing ) ) ] // fuzz-sigs have fixed size/format
12121212 fn test_low_r ( ) {
12131213 let secp = Secp256k1 :: new ( ) ;
12141214 let msg = hex ! ( "887d04bb1cf1b1554f1b268dfe62d13064ca67ae45348d50d1392ce2d13418ac" ) ;
@@ -1223,7 +1223,7 @@ mod tests {
12231223 }
12241224
12251225 #[ test]
1226- #[ cfg( not( rust_secp_fuzz ) ) ] // fuzz-sigs have fixed size/format
1226+ #[ cfg( not( fuzzing ) ) ] // fuzz-sigs have fixed size/format
12271227 fn test_grind_r ( ) {
12281228 let secp = Secp256k1 :: new ( ) ;
12291229 let msg = hex ! ( "ef2d5b9a7c61865a95941d0f04285420560df7e9d76890ac1b8867b12ce43167" ) ;
@@ -1237,7 +1237,7 @@ mod tests {
12371237 }
12381238
12391239 #[ cfg( feature = "serde" ) ]
1240- #[ cfg( not( rust_secp_fuzz ) ) ] // fixed sig vectors can't work with fuzz-sigs
1240+ #[ cfg( not( fuzzing ) ) ] // fixed sig vectors can't work with fuzz-sigs
12411241 #[ test]
12421242 fn test_signature_serde ( ) {
12431243 use serde_test:: { Configure , Token , assert_tokens} ;
0 commit comments