summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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
+
+ }
+
+ }
+
}
}