diff options
author | iximeow <me@iximeow.net> | 2014-11-27 02:06:03 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2014-11-27 02:06:03 -0800 |
commit | 0af5a2e4ade0b032e1ec6d25c51de2ff95dd2799 (patch) | |
tree | a4771f91a22821ffae20224dcc04269a31f73bff /test | |
parent | 9877ccf7fe7df38f8ecc65d01e9b46a98528502f (diff) |
Rough cut of challenge 10
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 { |