Browse Source

Fix toUInt32Array() #308

Marcin Krzyżanowski 9 years ago
parent
commit
c95da766bf
1 changed files with 0 additions and 8 deletions
  1. 0 8
      Sources/CryptoSwift/Collection+Extension.swift

+ 0 - 8
Sources/CryptoSwift/Collection+Extension.swift

@@ -19,10 +19,6 @@ extension Collection where Self.Iterator.Element == UInt8, Self.Index == Int {
             result.append(val)
         }
 
-        for _ in result.count..<MemoryLayout<UInt32>.size {
-            result.append(0)
-        }
-
         return result
     }
 
@@ -42,10 +38,6 @@ extension Collection where Self.Iterator.Element == UInt8, Self.Index == Int {
             result.append(val)
         }
 
-        for _ in result.count..<MemoryLayout<UInt64>.size {
-            result.append(0)
-        }
-
         return result
     }