Explorar o código

Moved the `invalidDERFormat` error case from RSA.Error to DER.Error enum.

Brandon Toms %!s(int64=3) %!d(string=hai) anos
pai
achega
49fb6d02a3
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      Sources/CryptoSwift/PEM/DER.swift

+ 5 - 0
Sources/CryptoSwift/PEM/DER.swift

@@ -91,6 +91,11 @@ extension DEREncodable {
 }
 
 struct DER {
+  internal enum Error:Swift.Error {
+    /// We were provided invalid DER data
+    case invalidDERFormat
+  }
+  
   /// Integer to Octet String Primitive
   /// - Parameters:
   ///   - x: nonnegative integer to be converted