Browse Source

Minor cleanup

Marcin Krzyżanowski 9 năm trước cách đây
mục cha
commit
ab37573aea
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Sources/CryptoSwift/AES.swift

+ 1 - 1
Sources/CryptoSwift/AES.swift

@@ -129,7 +129,7 @@ final public class AES: BlockCipher {
 
         var out = [UInt8]()
         out.reserveCapacity(bytes.count)
-        for processedBlock in AnySequence<Array<UInt8>>({ encryptGenerator }) {
+        while let processedBlock = encryptGenerator.next() {
             out.appendContentsOf(processedBlock)
         }
         return out