From ffca28be3c9c6a86a579949d23f68818a4b9b5d8 Mon Sep 17 00:00:00 2001 From: Si Beaumont Date: Wed, 2 Oct 2024 09:59:06 +0100 Subject: [PATCH] crypto: Equatable and Hashable conformance for CryptoKitError and CryptoKitASN1Error (#266) --- Sources/Crypto/CryptoKitErrors.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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