Stop checking context flags for secp256k1_ecdh as its not required
This commit is contained in:
parent
0466b5ed75
commit
f90e9f3454
|
@ -644,7 +644,6 @@ mod fuzz_dummy {
|
||||||
data: *mut c_void,
|
data: *mut c_void,
|
||||||
) -> c_int {
|
) -> c_int {
|
||||||
assert!(!cx.is_null() && (*cx).0 as u32 & !(SECP256K1_START_NONE | SECP256K1_START_VERIFY | SECP256K1_START_SIGN) == 0);
|
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; }
|
if secp256k1_ec_seckey_verify(cx, scalar) != 1 { return 0; }
|
||||||
|
|
||||||
let mut scalar_prefix = [0; 16];
|
let mut scalar_prefix = [0; 16];
|
||||||
|
|
Loading…
Reference in New Issue