diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Set2Spec.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Set2Spec.scala b/test/Set2Spec.scala index df25f57..7884b4e 100644 --- a/test/Set2Spec.scala +++ b/test/Set2Spec.scala @@ -23,12 +23,12 @@ class Set2Spec extends IxeeSpec { def challenge9spec(expected: Byte) = { val truncated = text.dropRight(expected) val padString = - CryptoUtils.pkcs7pad(truncated, 256).takeRight(expected) + CryptoUtils.pkcs7pad(truncated.toByteArray, 256).takeRight(expected) val expectedPad = s"${expected.toChar}" * expected - padString mustBe expectedPad + padString.asAscii mustBe expectedPad } for { |