summaryrefslogtreecommitdiff
path: root/src/utils/crypto/IxeeCipher.scala
diff options
context:
space:
mode:
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()
+}