Skip to content

Commit ffca28b

Browse files
crypto: Equatable and Hashable conformance for CryptoKitError and CryptoKitASN1Error (#266)
1 parent 3570357 commit ffca28b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/Crypto/CryptoKitErrors.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ public enum CryptoKitError: Error {
3333
case invalidParameter
3434
}
3535

36+
extension CryptoKitError: Equatable, Hashable {}
37+
3638
/// Errors from decoding ASN.1 content.
37-
public enum CryptoKitASN1Error: Error {
39+
public enum CryptoKitASN1Error: Equatable, Error, Hashable {
3840
/// The ASN.1 tag for this field is invalid or unsupported.
3941
case invalidFieldIdentifier
4042

0 commit comments

Comments
 (0)