Sfoglia il codice sorgente

Rabbit.encrypt don;t throw

Marcin Krzyżanowski 9 anni fa
parent
commit
92e6d02a81
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Sources/CryptoSwift/Rabbit.swift

+ 1 - 1
Sources/CryptoSwift/Rabbit.swift

@@ -200,7 +200,7 @@ extension Rabbit: Cipher {
         return result
     }
 
-    public func decrypt<C: Collection>(_ bytes: C) throws -> Array<UInt8> where C.Iterator.Element == UInt8, C.IndexDistance == Int, C.Index == Int {
+    public func decrypt<C: Collection>(_ bytes: C) -> Array<UInt8> where C.Iterator.Element == UInt8, C.IndexDistance == Int, C.Index == Int {
         return encrypt(bytes)
     }
 }