CryptoKitASN1Error
Errors from decoding ASN.1 content.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
enum CryptoKitASN1Error
Errors from decoding ASN.1 content.
enum CryptoKitASN1Error
import Crypto
A cryptography library for Swift.
case invalidFieldIdentifier
The ASN.1 tag for this field is invalid or unsupported.
case unexpectedFieldType
The ASN.1 tag for the parsed field doesn’t match the required format.
case invalidObjectIdentifier
An ASN.1 object identifier is invalid.
case invalidASN1Object
The format of the parsed ASN.1 object doesn’t match the format required for the data type being decoded.
case invalidASN1IntegerEncoding
An ASN.1 integer doesn’t use the minimum number of bytes for its encoding.
case truncatedASN1Field
An ASN.1 field is truncated.
case unsupportedFieldLength
The encoding used for the field length is unsupported.
case invalidPEMDocument
The string doesn’t parse as a PEM document.
enum CryptoKitError
General cryptography errors used by CryptoKit.
protocol Equatable
A type that can be compared for value equality.
protocol Error : Sendable
A type representing an error value that can be thrown.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
var localizedDescription: String { get }
Retrieve the localized description for this error.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.