summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWan-Teh Chang <wtc@google.com>2013-03-25 17:20:01 -0700
committerWan-Teh Chang <wtc@google.com>2013-03-25 17:20:01 -0700
commit4e9d4d785d3344b1cf91e232b322329e5280fd18 (patch)
treeb26c9107d4f68500dfd4f4e1b7b54d36ce281b69
parent08f637202db0ad452fd30f61cb78641abe417134 (diff)
downloadnss-hg-4e9d4d785d3344b1cf91e232b322329e5280fd18.tar.gz
Bug 853285: Add the test files for AES GCM Test Cases 1, 7, 13
(the files are numbered 0, 6, 12). TBR=rrelyea.
-rw-r--r--cmd/bltest/tests/aes_gcm/aad00
-rw-r--r--cmd/bltest/tests/aes_gcm/aad120
-rw-r--r--cmd/bltest/tests/aes_gcm/aad60
-rw-r--r--cmd/bltest/tests/aes_gcm/ciphertext01
-rw-r--r--cmd/bltest/tests/aes_gcm/ciphertext121
-rw-r--r--cmd/bltest/tests/aes_gcm/ciphertext61
-rw-r--r--cmd/bltest/tests/aes_gcm/iv0bin0 -> 12 bytes
-rw-r--r--cmd/bltest/tests/aes_gcm/iv12bin0 -> 12 bytes
-rw-r--r--cmd/bltest/tests/aes_gcm/iv6bin0 -> 12 bytes
-rw-r--r--cmd/bltest/tests/aes_gcm/key0bin0 -> 16 bytes
-rw-r--r--cmd/bltest/tests/aes_gcm/key12bin0 -> 32 bytes
-rw-r--r--cmd/bltest/tests/aes_gcm/key6bin0 -> 24 bytes
-rw-r--r--cmd/bltest/tests/aes_gcm/plaintext00
-rw-r--r--cmd/bltest/tests/aes_gcm/plaintext120
-rw-r--r--cmd/bltest/tests/aes_gcm/plaintext60
-rw-r--r--cmd/bltest/tests/aes_gcm/test0.txt11
-rw-r--r--cmd/bltest/tests/aes_gcm/test12.txt11
-rw-r--r--cmd/bltest/tests/aes_gcm/test6.txt11
18 files changed, 36 insertions, 0 deletions
diff --git a/cmd/bltest/tests/aes_gcm/aad0 b/cmd/bltest/tests/aes_gcm/aad0
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/cmd/bltest/tests/aes_gcm/aad0
diff --git a/cmd/bltest/tests/aes_gcm/aad12 b/cmd/bltest/tests/aes_gcm/aad12
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/cmd/bltest/tests/aes_gcm/aad12
diff --git a/cmd/bltest/tests/aes_gcm/aad6 b/cmd/bltest/tests/aes_gcm/aad6
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/cmd/bltest/tests/aes_gcm/aad6
diff --git a/cmd/bltest/tests/aes_gcm/ciphertext0 b/cmd/bltest/tests/aes_gcm/ciphertext0
new file mode 100644
index 000000000..3b352147b
--- /dev/null
+++ b/cmd/bltest/tests/aes_gcm/ciphertext0
@@ -0,0 +1 @@
+WOL8zvp+MGE2fx1XpOdFWg==
diff --git a/cmd/bltest/tests/aes_gcm/ciphertext12 b/cmd/bltest/tests/aes_gcm/ciphertext12
new file mode 100644
index 000000000..b756f5c56
--- /dev/null
+++ b/cmd/bltest/tests/aes_gcm/ciphertext12
@@ -0,0 +1 @@
+Uw+K+8dFNrmpY7TxxMtziw==
diff --git a/cmd/bltest/tests/aes_gcm/ciphertext6 b/cmd/bltest/tests/aes_gcm/ciphertext6
new file mode 100644
index 000000000..dc07bfd3f
--- /dev/null
+++ b/cmd/bltest/tests/aes_gcm/ciphertext6
@@ -0,0 +1 @@
+zTOyisdz90ugDtHzElckNQ==
diff --git a/cmd/bltest/tests/aes_gcm/iv0 b/cmd/bltest/tests/aes_gcm/iv0
new file mode 100644
index 000000000..ce58bc9f8
--- /dev/null
+++ b/cmd/bltest/tests/aes_gcm/iv0
Binary files differ
diff --git a/cmd/bltest/tests/aes_gcm/iv12 b/cmd/bltest/tests/aes_gcm/iv12
new file mode 100644
index 000000000..ce58bc9f8
--- /dev/null
+++ b/cmd/bltest/tests/aes_gcm/iv12
Binary files differ
diff --git a/cmd/bltest/tests/aes_gcm/iv6 b/cmd/bltest/tests/aes_gcm/iv6
new file mode 100644
index 000000000..ce58bc9f8
--- /dev/null
+++ b/cmd/bltest/tests/aes_gcm/iv6
Binary files differ
diff --git a/cmd/bltest/tests/aes_gcm/key0 b/cmd/bltest/tests/aes_gcm/key0
new file mode 100644
index 000000000..01d633b27
--- /dev/null
+++ b/cmd/bltest/tests/aes_gcm/key0
Binary files differ
diff --git a/cmd/bltest/tests/aes_gcm/key12 b/cmd/bltest/tests/aes_gcm/key12
new file mode 100644
index 000000000..4e4e49357
--- /dev/null
+++ b/cmd/bltest/tests/aes_gcm/key12
Binary files differ
diff --git a/cmd/bltest/tests/aes_gcm/key6 b/cmd/bltest/tests/aes_gcm/key6
new file mode 100644
index 000000000..4ac5fc6cf
--- /dev/null
+++ b/cmd/bltest/tests/aes_gcm/key6
Binary files differ
diff --git a/cmd/bltest/tests/aes_gcm/plaintext0 b/cmd/bltest/tests/aes_gcm/plaintext0
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/cmd/bltest/tests/aes_gcm/plaintext0
diff --git a/cmd/bltest/tests/aes_gcm/plaintext12 b/cmd/bltest/tests/aes_gcm/plaintext12
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/cmd/bltest/tests/aes_gcm/plaintext12
diff --git a/cmd/bltest/tests/aes_gcm/plaintext6 b/cmd/bltest/tests/aes_gcm/plaintext6
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/cmd/bltest/tests/aes_gcm/plaintext6
diff --git a/cmd/bltest/tests/aes_gcm/test0.txt b/cmd/bltest/tests/aes_gcm/test0.txt
new file mode 100644
index 000000000..a8bd4e15f
--- /dev/null
+++ b/cmd/bltest/tests/aes_gcm/test0.txt
@@ -0,0 +1,11 @@
+test="Test Case 1"
+K=00000000000000000000000000000000
+P=
+IV=000000000000000000000000
+H=66e94bd4ef8a2c3b884cfa59ca342b2e
+Y0=00000000000000000000000000000001
+E(K,Y0)=58e2fccefa7e3061367f1d57a4e7455a
+len(A)||len(C)=00000000000000000000000000000000
+GHASH(H,A,C)=00000000000000000000000000000000
+C=
+T=58e2fccefa7e3061367f1d57a4e7455a
diff --git a/cmd/bltest/tests/aes_gcm/test12.txt b/cmd/bltest/tests/aes_gcm/test12.txt
new file mode 100644
index 000000000..b9ccfa86a
--- /dev/null
+++ b/cmd/bltest/tests/aes_gcm/test12.txt
@@ -0,0 +1,11 @@
+test="Test Case 13"
+K=0000000000000000000000000000000000000000000000000000000000000000
+P=
+IV=000000000000000000000000
+H=dc95c078a2408989ad48a21492842087
+Y0=00000000000000000000000000000001
+E(K,Y0)=530f8afbc74536b9a963b4f1c4cb738b
+len(A)||len(C)=00000000000000000000000000000000
+GHASH(H,A,C)=00000000000000000000000000000000
+C=
+T=530f8afbc74536b9a963b4f1c4cb738b
diff --git a/cmd/bltest/tests/aes_gcm/test6.txt b/cmd/bltest/tests/aes_gcm/test6.txt
new file mode 100644
index 000000000..b738e1f05
--- /dev/null
+++ b/cmd/bltest/tests/aes_gcm/test6.txt
@@ -0,0 +1,11 @@
+test="Test Case 7"
+K=000000000000000000000000000000000000000000000000
+P=
+IV=000000000000000000000000
+H=aae06992acbf52a3e8f4a96ec9300bd7
+Y0=00000000000000000000000000000001
+E(K,Y0)=cd33b28ac773f74ba00ed1f312572435
+len(A)||len(C)=00000000000000000000000000000000
+GHASH(H,A,C)=00000000000000000000000000000000
+C=
+T=cd33b28ac773f74ba00ed1f312572435