Skip to content

Commit

Permalink
crypto: Equatable and Hashable conformance for CryptoKitError and Cry…
Browse files Browse the repository at this point in the history
…ptoKitASN1Error (#266)
  • Loading branch information
simonjbeaumont authored Oct 2, 2024
1 parent 3570357 commit ffca28b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Crypto/CryptoKitErrors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ public enum CryptoKitError: Error {
case invalidParameter
}

extension CryptoKitError: Equatable, Hashable {}

/// Errors from decoding ASN.1 content.
public enum CryptoKitASN1Error: Error {
public enum CryptoKitASN1Error: Equatable, Error, Hashable {
/// The ASN.1 tag for this field is invalid or unsupported.
case invalidFieldIdentifier

Expand Down

0 comments on commit ffca28b

Please sign in to comment.