瀏覽代碼

Possibly a bug: Add public access control to AES.Error and ChaCha20.Error

Fixing the below errors which occurs when try to catch error
out side of CryptoSwift module:
Type 'AES' has no member 'Error'
Type 'ChaCha20' has no member 'Error'
Nobutaka Yuasa 9 年之前
父節點
當前提交
440433fd9e
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      CryptoSwift/AES.swift
  2. 1 1
      CryptoSwift/ChaCha20.swift

+ 1 - 1
CryptoSwift/AES.swift

@@ -8,7 +8,7 @@
 
 final public class AES {
     
-    enum Error: ErrorType {
+    public enum Error: ErrorType {
         case BlockSizeExceeded
         case InvalidKeyOrInitializationVector
         case InvalidInitializationVector

+ 1 - 1
CryptoSwift/ChaCha20.swift

@@ -8,7 +8,7 @@
 
 final public class ChaCha20 {
     
-    enum Error: ErrorType {
+    public enum Error: ErrorType {
         case MissingContext
     }