Ver Fonte

Rabbit.encrypt don;t throw

Marcin Krzyżanowski há 9 anos atrás
pai
commit
92e6d02a81
1 ficheiros alterados com 1 adições e 1 exclusões
  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)
     }
 }