diff options
author | Andres Erbsen <andreser@mit.edu> | 2016-03-24 18:15:48 -0400 |
---|---|---|
committer | Andres Erbsen <andreser@mit.edu> | 2016-03-24 18:15:48 -0400 |
commit | 824d84126187f359605527beb947a385e43761c4 (patch) | |
tree | dd9369490e09e7ad47236db163a45194f0ef3088 /src/Spec/EdDSA.v | |
parent | 3d75a97748a6ce76364324762b919d3e54a4cac3 (diff) |
ed25519 derivation: pair programming with jgross... slow progress
Diffstat (limited to 'src/Spec/EdDSA.v')
-rw-r--r-- | src/Spec/EdDSA.v | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Spec/EdDSA.v b/src/Spec/EdDSA.v index c9660bd98..3decae6a7 100644 --- a/src/Spec/EdDSA.v +++ b/src/Spec/EdDSA.v @@ -74,9 +74,9 @@ Section EdDSA. Definition verify (A_:publickey) {n:nat} (M : Word.word n) (sig:signature) : bool := let R_ := Word.split1 b b sig in let S_ := Word.split2 b b sig in + match dec S_ : option (F (BinInt.Z.of_nat l)) with None => false | Some S' => match dec A_ : option point with None => false | Some A => match dec R_ : option point with None => false | Some R => - match dec S_ : option (F (BinInt.Z.of_nat l)) with None => false | Some S' => if BinInt.Z.to_nat (FieldToZ S') * B == R + (H (R_ ++ A_ ++ M)) * A then true else false end |