Skip to content

Commit

Permalink
Moved the invalidDERFormat error case from RSA.Error to DER.Error e…
Browse files Browse the repository at this point in the history
…num.
  • Loading branch information
btoms20 committed Aug 21, 2022
1 parent 8cbb4e1 commit 49fb6d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/CryptoSwift/PEM/DER.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 49fb6d0

Please sign in to comment.