Enumerationswift-crypto 3.8.0Crypto
CryptoKitASN1Error
Errors from decoding ASN.1 content.
CryptoKitErrors.swift:39enum CryptoKitASN1Error
Cases
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.
Citizens in Crypto
Conformances
protocol Equatable
A type that can be compared for value equality.
protocol Error
A type representing an error value that can be thrown.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol Sendable
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.
Instance features
var localizedDescription: String
Retrieve the localized description for this error.