From 409e8109d8076058e4f154272270a79b6844da18 Mon Sep 17 00:00:00 2001 From: iximeow Date: Fri, 28 Nov 2014 03:15:21 -0800 Subject: Refactor CBC utils --- src/utils/crypto/IxeeCipher.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/utils/crypto/IxeeCipher.scala (limited to 'src/utils/crypto/IxeeCipher.scala') diff --git a/src/utils/crypto/IxeeCipher.scala b/src/utils/crypto/IxeeCipher.scala new file mode 100644 index 0000000..e4a8617 --- /dev/null +++ b/src/utils/crypto/IxeeCipher.scala @@ -0,0 +1,8 @@ +package ixee.cryptopals.utils.crypto + +trait IxeeCipher { + def update(data: Seq[Byte]): Seq[Byte] + def end(): Seq[Byte] + def end(data: Seq[Byte]): Seq[Byte] = + update(data) ++ end() +} -- cgit v1.1