@@ -6,6 +6,6 @@
// Copyright © 2016 Marcin Krzyzanowski. All rights reserved.
//
-protocol BlockCipher {
+protocol BlockCipher: class {
static var blockSize: Int { get }
-}
+}
@@ -11,7 +11,7 @@ public enum CipherError: Error {
case decrypt
}
-public protocol Cipher {
+public protocol Cipher: class {
/// Encrypt given bytes at once
///
/// - parameter bytes: Plaintext data
@@ -12,7 +12,7 @@
import Darwin
#endif
-public protocol Cryptors {
+public protocol Cryptors: class {
associatedtype EncryptorType: UpdatableCryptor
associatedtype DecryptorType: UpdatableCryptor
@@ -6,7 +6,7 @@
// Copyright (c) 2014 Marcin Krzyzanowski. All rights reserved.
-internal protocol HashProtocol {
+internal protocol HashProtocol: class {
var message: Array<UInt8> { get }
/** Common part for hash calculation. Prepare header data. */
@@ -52,4 +52,4 @@ extension UpdatableCryptor {
output(processed)