103
103
//! 0xc9, 0x42, 0x8f, 0xca, 0x69, 0xc1, 0x32, 0xa2,
104
104
//! ]).expect("compact signatures are 64 bytes; DER signatures are 68-72 bytes");
105
105
//!
106
- //! # #[cfg(not(rust_secp_fuzz ))]
106
+ //! # #[cfg(not(fuzzing ))]
107
107
//! assert!(secp.verify(&message, &sig, &public_key).is_ok());
108
108
//! ```
109
109
//!
@@ -744,7 +744,7 @@ impl<C: Signing> Secp256k1<C> {
744
744
entropy_p = extra_entropy. as_ptr ( ) as * const ffi:: types:: c_void ;
745
745
746
746
// When fuzzing, these checks will usually spinloop forever, so just short-circuit them.
747
- #[ cfg( rust_secp_fuzz ) ]
747
+ #[ cfg( fuzzing ) ]
748
748
return Signature :: from ( ret) ;
749
749
}
750
750
}
@@ -1108,12 +1108,12 @@ mod tests {
1108
1108
if compact[ 0 ] < 0x80 {
1109
1109
assert_eq ! ( sig, low_r_sig) ;
1110
1110
} 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
1112
1112
assert_ne ! ( sig, low_r_sig) ;
1113
1113
}
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
1115
1115
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
1117
1117
assert ! ( super :: der_length_check( & grind_r_sig. 0 , 70 ) ) ;
1118
1118
}
1119
1119
}
@@ -1186,7 +1186,7 @@ mod tests {
1186
1186
}
1187
1187
1188
1188
#[ 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
1190
1190
fn test_low_s ( ) {
1191
1191
// nb this is a transaction on testnet
1192
1192
// txid 8ccc87b72d766ab3128f03176bb1c98293f2d1f85ebfaf07b82cc81ea6891fa9
@@ -1208,7 +1208,7 @@ mod tests {
1208
1208
}
1209
1209
1210
1210
#[ test]
1211
- #[ cfg( not( rust_secp_fuzz ) ) ] // fuzz-sigs have fixed size/format
1211
+ #[ cfg( not( fuzzing ) ) ] // fuzz-sigs have fixed size/format
1212
1212
fn test_low_r ( ) {
1213
1213
let secp = Secp256k1 :: new ( ) ;
1214
1214
let msg = hex ! ( "887d04bb1cf1b1554f1b268dfe62d13064ca67ae45348d50d1392ce2d13418ac" ) ;
@@ -1223,7 +1223,7 @@ mod tests {
1223
1223
}
1224
1224
1225
1225
#[ test]
1226
- #[ cfg( not( rust_secp_fuzz ) ) ] // fuzz-sigs have fixed size/format
1226
+ #[ cfg( not( fuzzing ) ) ] // fuzz-sigs have fixed size/format
1227
1227
fn test_grind_r ( ) {
1228
1228
let secp = Secp256k1 :: new ( ) ;
1229
1229
let msg = hex ! ( "ef2d5b9a7c61865a95941d0f04285420560df7e9d76890ac1b8867b12ce43167" ) ;
@@ -1237,7 +1237,7 @@ mod tests {
1237
1237
}
1238
1238
1239
1239
#[ 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
1241
1241
#[ test]
1242
1242
fn test_signature_serde ( ) {
1243
1243
use serde_test:: { Configure , Token , assert_tokens} ;
0 commit comments