소스 검색

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 10 년 전
부모
커밋
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
     }