Browse Source

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

Brandon Toms 3 năm trước cách đây
mục cha
commit
49fb6d02a3
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  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