summaryrefslogtreecommitdiff
path: root/src/utils/crypto/IxeeCipher.scala
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2014-11-28 03:15:21 -0800
committeriximeow <me@iximeow.net>2014-11-28 03:15:21 -0800
commit409e8109d8076058e4f154272270a79b6844da18 (patch)
treeb98297162d542506bd4eb911532b349608dfc2d7 /src/utils/crypto/IxeeCipher.scala
parent0af5a2e4ade0b032e1ec6d25c51de2ff95dd2799 (diff)
Refactor CBC utils
Diffstat (limited to 'src/utils/crypto/IxeeCipher.scala')
-rw-r--r--src/utils/crypto/IxeeCipher.scala8
1 files changed, 8 insertions, 0 deletions
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()
+}