aboutsummaryrefslogtreecommitdiff
path: root/src/Spec/Test
diff options
context:
space:
mode:
authorGravatar Jason Gross <jgross@mit.edu>2018-08-23 22:49:37 -0400
committerGravatar Jason Gross <jasongross9@gmail.com>2018-08-24 06:45:23 -0700
commit64825ae187b354e4a6647105ce52544abdb6f4ae (patch)
treed4e37e983aa5f6840efd930a634ca2437c036d0b /src/Spec/Test
parent0e3a471d4e2f4784e88c1323a814580aa66ecd85 (diff)
Import prim token notations before using them
This is required for compatibility with https://github.com/coq/coq/pull/8064, where prim token notations no longer follow `Require`, but instead follow `Import`. c.f. https://github.com/coq/coq/pull/8064#issuecomment-415493362 Almost all changes were made via https://gist.github.com/JasonGross/5d4558edf8f5c2c548a3d96c17820169#file-fix-py
Diffstat (limited to 'src/Spec/Test')
-rw-r--r--src/Spec/Test/X25519.v3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Spec/Test/X25519.v b/src/Spec/Test/X25519.v
index a4fed8dd4..97b3a5fe0 100644
--- a/src/Spec/Test/X25519.v
+++ b/src/Spec/Test/X25519.v
@@ -1,6 +1,9 @@
(* Test vectors from <https://tools.ietf.org/html/rfc7748#section-5.2>,
with hex values converted to decimal using python like this:
> int.from_bytes(binascii.unhexlify('deadbeef'), 'little') *)
+Require Import Coq.NArith.BinNatDef.
+Require Import Coq.ZArith.BinIntDef.
+Require Import Coq.PArith.BinPosDef.
Require Import Spec.ModularArithmetic Spec.MxDH Crypto.Util.Decidable.
Definition F := F (2^255 - 19).
Definition a : F := F.of_Z _ 486662.