Merge pull request #94 from TheBlueMatt/master

Stop checking context flags for secp256k1_ecdh as its not required
This commit is contained in:
Matt Corallo 2019-01-17 10:41:02 -05:00 committed by GitHub
commit a54f9b7f20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -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];