Browse Source

Degeneric process() function

Marcin Krzyżanowski 9 years ago
parent
commit
d24edade7a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/CryptoSwift/MD5.swift

+ 1 - 1
Sources/CryptoSwift/MD5.swift

@@ -51,7 +51,7 @@ public final class MD5: DigestType {
     }
 
     // mutating currentHash in place is way faster than returning new result
-    fileprivate func process<C: Collection>(block chunk: C, currentHash: inout Array<UInt32>) where C.Iterator.Element == UInt8, C.Index == Int {
+    fileprivate func process(block chunk: ArraySlice<UInt8>, currentHash: inout Array<UInt32>) {
 
         // break chunk into sixteen 32-bit words M[j], 0 ≤ j ≤ 15
         var M = chunk.toUInt32Array()