aboutsummaryrefslogtreecommitdiffstats
path: root/tests/vectors/fernet
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-10-31 14:16:24 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2013-10-31 14:16:24 -0700
commitfb8adfcb2f0a67519ee81cad0c50d2e359ff3a20 (patch)
treec9dd8f8fc8fdf21fa0c313019c7da00bb6a005a1 /tests/vectors/fernet
parent139cf462ca0126d6ed161a4b32e6b6c889c77318 (diff)
downloadcryptography-fb8adfcb2f0a67519ee81cad0c50d2e359ff3a20.tar.gz
cryptography-fb8adfcb2f0a67519ee81cad0c50d2e359ff3a20.tar.bz2
cryptography-fb8adfcb2f0a67519ee81cad0c50d2e359ff3a20.zip
Use raw vector files
Diffstat (limited to 'tests/vectors/fernet')
-rw-r--r--tests/vectors/fernet/generate.json9
-rw-r--r--tests/vectors/fernet/verify.json9
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/vectors/fernet/generate.json b/tests/vectors/fernet/generate.json
new file mode 100644
index 00000000..d1f3e083
--- /dev/null
+++ b/tests/vectors/fernet/generate.json
@@ -0,0 +1,9 @@
+[
+ {
+ "token": "gAAAAAAdwJ6wAAECAwQFBgcICQoLDA0ODy021cpGVWKZ_eEwCGM4BLLF_5CV9dOPmrhuVUPgJobwOz7JcbmrR64jVmpU4IwqDA==",
+ "now": "1985-10-26T01:20:00-07:00",
+ "iv": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
+ "src": "hello",
+ "secret": "cw_0x689RpI-jtRR7oE8h_eQsKImvJapLeSbXpwF4e4="
+ }
+]
diff --git a/tests/vectors/fernet/verify.json b/tests/vectors/fernet/verify.json
new file mode 100644
index 00000000..08c480f5
--- /dev/null
+++ b/tests/vectors/fernet/verify.json
@@ -0,0 +1,9 @@
+[
+ {
+ "token": "gAAAAAAdwJ6wAAECAwQFBgcICQoLDA0ODy021cpGVWKZ_eEwCGM4BLLF_5CV9dOPmrhuVUPgJobwOz7JcbmrR64jVmpU4IwqDA==",
+ "now": "1985-10-26T01:20:01-07:00",
+ "ttl_sec": 60,
+ "src": "hello",
+ "secret": "cw_0x689RpI-jtRR7oE8h_eQsKImvJapLeSbXpwF4e4="
+ }
+]