diff options
Diffstat (limited to 'test/Set2Spec.scala')
-rw-r--r-- | test/Set2Spec.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Set2Spec.scala b/test/Set2Spec.scala index d230a18..156949b 100644 --- a/test/Set2Spec.scala +++ b/test/Set2Spec.scala @@ -73,6 +73,17 @@ class Set2Spec extends IxeeSpec { } } + + "Challenge 11: ECB/CBC detection" - { + + val input = "keke" * 32 + + val (mode, ciphertext) = Gloria.encryptify(input.asBytes) + + CryptoUtils.detectMode(ciphertext) mustBe mode // ...always. + + } + } } |