aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/data/modes
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-01-06 11:45:18 -0500
committerJack Lloyd <[email protected]>2017-01-06 11:45:18 -0500
commitb3d598a66fd26b737ca9e4041d700294d452c516 (patch)
tree26da6eba7faa1f05d0720ff2c379a0150e015aad /src/tests/data/modes
parentfd230f98a287ccbcc237947d8d5e984231789629 (diff)
Add tests for Stream_Cipher_Mode
GH #713
Diffstat (limited to 'src/tests/data/modes')
-rw-r--r--src/tests/data/modes/ctr.vec14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tests/data/modes/ctr.vec b/src/tests/data/modes/ctr.vec
new file mode 100644
index 000000000..4ad16f178
--- /dev/null
+++ b/src/tests/data/modes/ctr.vec
@@ -0,0 +1,14 @@
+# Main CTR mode tests are in stream/ctr.vec this file is primarily
+# to test Stream_Cipher_Mode adaptor class
+
+[CTR-BE(DES)]
+Key = 0123456789ABCDEF
+Nonce = 1234567890ABCDEF
+In = 4E6F77206973207468652074696D6520666F7220616C6C20
+Out = F3096249C7F46E51163A8CA0FFC94C27FA2F80F480B86F75
+
+[CTR-BE(AES-128)]
+Key = 2B7E151628AED2A6ABF7158809CF4F3C
+Nonce = F0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF
+In = 6BC1BEE22E409F96E93D7E117393172AAE2D8A571E03AC9C9EB76FAC45AF8E5130C81C46A35CE411E5FBC1191A0A52EFF69F2445DF4F9B17AD2B417BE66C3710
+Out = 874D6191B620E3261BEF6864990DB6CE9806F66B7970FDFF8617187BB9FFFDFF5AE4DF3EDBD5D35E5B4F09020DB03EAB1E031DDA2FBE03D1792170A0F3009CEE