Skip to content

Commit

Permalink
Stop checking context flags for secp256k1_ecdh as its not required
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Jan 16, 2019
1 parent 0466b5e commit f90e9f3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,6 @@ mod fuzz_dummy {
data: *mut c_void,
) -> c_int {
assert!(!cx.is_null() && (*cx).0 as u32 & !(SECP256K1_START_NONE | SECP256K1_START_VERIFY | SECP256K1_START_SIGN) == 0);
assert!((*cx).0 as u32 & SECP256K1_START_SIGN == SECP256K1_START_SIGN);
if secp256k1_ec_seckey_verify(cx, scalar) != 1 { return 0; }

let mut scalar_prefix = [0; 16];
Expand Down

0 comments on commit f90e9f3

Please sign in to comment.