aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/development/test-vectors.rst2
-rw-r--r--vectors/cryptography_vectors/ciphers/SEED/rfc-4196.txt15
-rw-r--r--vectors/cryptography_vectors/ciphers/SEED/rfc-4269.txt22
3 files changed, 39 insertions, 0 deletions
diff --git a/docs/development/test-vectors.rst b/docs/development/test-vectors.rst
index 484d06bd..d2e9548b 100644
--- a/docs/development/test-vectors.rst
+++ b/docs/development/test-vectors.rst
@@ -77,6 +77,8 @@ Symmetric ciphers
* IDEA (ECB) from the `NESSIE IDEA vectors`_ created by `NESSIE`_.
* IDEA (CBC, CFB, OFB) generated by this project.
See: :doc:`/development/custom-vectors/idea`
+* SEED (ECB) from :rfc:`4269`.
+* SEED (CBC) from :rfc:`4196`.
Two factor authentication
~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/vectors/cryptography_vectors/ciphers/SEED/rfc-4196.txt b/vectors/cryptography_vectors/ciphers/SEED/rfc-4196.txt
new file mode 100644
index 00000000..a493ffd3
--- /dev/null
+++ b/vectors/cryptography_vectors/ciphers/SEED/rfc-4196.txt
@@ -0,0 +1,15 @@
+# Vectors from RFC 6229. Reformatted to work with the NIST loader
+# SEED CBC
+[ENCRYPT]
+
+COUNT = 0
+KEY = ed2401ad22fa255991bafdb01fefd697
+IV = 93eb149f92c9905bae5cd34da06c3c8e
+PLAINTEXT = b40d7003d9b6904b35622750c91a24575bb9a632364aa26e3ac0cf3a9c9d0dcb
+CIPHERTEXT = f072c5b1a0588c105af8301adcd91dd067f6822155304bf3aad75ceb44341c25
+
+COUNT = 1
+KEY = 88e34f8f081779f1e9f394370ad40589
+IV = 268d66a735a81a816fbad9fa36162501
+PLAINTEXT = d76d0d18327ec562b15e6bc365ac0c0f8d41e0bb938568aeebfd92ed1affa096394d20fc5277ddfc4de8b0fce1eb2b93d4ae40ef4768c613b50b8942f7d4b9b3
+CIPHERTEXT = a293eae9d9aebfac37ba714bd774e427e8b706d7e7d9a097228639e0b62b3b34ced11609cef2abaaec2edf979308f379c31527a8267783e5cba3538982b48d06
diff --git a/vectors/cryptography_vectors/ciphers/SEED/rfc-4269.txt b/vectors/cryptography_vectors/ciphers/SEED/rfc-4269.txt
new file mode 100644
index 00000000..d94bb787
--- /dev/null
+++ b/vectors/cryptography_vectors/ciphers/SEED/rfc-4269.txt
@@ -0,0 +1,22 @@
+# Vectors from RFC 4269. Reformatted to work with the NIST loader
+[ENCRYPT]
+
+COUNT = 0
+KEY = 00000000000000000000000000000000
+PLAINTEXT = 000102030405060708090A0B0C0D0E0F
+CIPHERTEXT = 5EBAC6E0054E166819AFF1CC6D346CDB
+
+COUNT = 1
+KEY = 000102030405060708090A0B0C0D0E0F
+PLAINTEXT = 00000000000000000000000000000000
+CIPHERTEXT = C11F22F20140505084483597E4370F43
+
+COUNT = 2
+KEY = 4706480851E61BE85D74BFB3FD956185
+PLAINTEXT = 83A2F8A288641FB9A4E9A5CC2F131C7D
+CIPHERTEXT = EE54D13EBCAE706D226BC3142CD40D4A
+
+COUNT = 3
+KEY = 28DBC3BC49FFD87DCFA509B11D422BE7
+PLAINTEXT = B41E6BE2EBA84A148E2EED84593C5EC7
+CIPHERTEXT = 9B9B7BFCD1813CB95D0B3618F40F5122