Browse Source

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 years ago
parent
commit
440433fd9e
2 changed files with 2 additions and 2 deletions
  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
     }