summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2014-11-30 16:19:22 -0800
committeriximeow <me@iximeow.net>2014-11-30 16:19:22 -0800
commite025738f13bf9612a39f907329a547fb8fc66ebe (patch)
tree6bfb509b4b43912e63b5ce9519ef76bf696b6e60 /test
parent077b1df51f501ed44c7e9a421301174ac7efeaeb (diff)
Challenge 12
Diffstat (limited to 'test')
-rw-r--r--test/Set2Spec.scala12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/Set2Spec.scala b/test/Set2Spec.scala
index 156949b..f17f459 100644
--- a/test/Set2Spec.scala
+++ b/test/Set2Spec.scala
@@ -74,7 +74,7 @@ class Set2Spec extends IxeeSpec {
}
- "Challenge 11: ECB/CBC detection" - {
+ "Challenge 11: ECB/CBC detection" in {
val input = "keke" * 32
@@ -84,6 +84,16 @@ class Set2Spec extends IxeeSpec {
}
+ "Challenge 12: ECB Decryption with user-specified prefix" - {
+
+ "Extracts an unknown suffix from encrypted data" in {
+
+ new String(Challenge12.run.toArray) mustBe Challenge12.expectation
+
+ }
+
+ }
+
}
}