mirror of
https://github.com/saymrwulf/betrusted-curve25519-dalek-source.git
synced 2026-09-05 20:30:54 +00:00
patch: remove ConditionallyNegatable for Aeneas/Charon transpilation
Upstream: betrusted-io/curve25519-dalek v4.1.2 Required for: formal verification via Aeneas bf13c42e + Charon 9dd7f23c
This commit is contained in:
parent
16e087ab96
commit
3df6a2b041
1 changed files with 1 additions and 2 deletions
|
|
@ -28,7 +28,6 @@
|
|||
use cfg_if::cfg_if;
|
||||
|
||||
use subtle::Choice;
|
||||
use subtle::ConditionallyNegatable;
|
||||
use subtle::ConditionallySelectable;
|
||||
use subtle::ConstantTimeEq;
|
||||
|
||||
|
|
@ -290,7 +289,7 @@ impl FieldElement {
|
|||
|
||||
// Choose the nonnegative square root.
|
||||
let r_is_negative = r.is_negative();
|
||||
r.conditional_negate(r_is_negative);
|
||||
let r_neg = -&r; r.conditional_assign(&r_neg, r_is_negative);
|
||||
|
||||
let was_nonzero_square = correct_sign_sqrt | flipped_sign_sqrt;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue