diff --git a/Sources/Crypto/CryptoKitErrors.swift b/Sources/Crypto/CryptoKitErrors.swift index 315ae995..31c4523f 100644 --- a/Sources/Crypto/CryptoKitErrors.swift +++ b/Sources/Crypto/CryptoKitErrors.swift @@ -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