AlgorithmIdentifier
public struct AlgorithmIdentifier : RawRepresentable, Equatable, Hashable, Codable
An AlgorithmIdentifier
instance specifies the cryptographic signature algorithm with which the newly generated credential will be used, and thus the type of asymmetric key pair to be generated.
-
Declaration
Swift
public private(set) var rawValue: UInt16 { get }
-
Declaration
Swift
public init(rawValue: UInt16)
-
An ECDSA signature on the NIST secp256r1 curve which must have raw R and S buffers, encoded in big-endian order.
Declaration
Swift
static let signSecp256r1ecdsaSHA256Raw: AlgorithmIdentifier
-
DER [ITU-X690-2008] encoded ECDSA signature [RFC5480] on the NIST secp256r1 curve.
Declaration
Swift
static let signSecp256r1ecdsaSHA256DER: AlgorithmIdentifier
-
RSASSA-PSS [RFC3447] signature must have raw S buffers, encoded in big-endian order [RFC4055] [RFC4056].
Declaration
Swift
static let signRSASSAPSSSHA256Raw: AlgorithmIdentifier
-
DER [ITU-X690-2008] encoded OCTET STRING containing the RSASSA-PSS [RFC3447] signature [RFC4055] [RFC4056].
Declaration
Swift
static let signRSASSAPSSSHA256DER: AlgorithmIdentifier
-
An ECDSA signature on the secp256k1 curve which must have raw R and S buffers, encoded in big-endian order.
Declaration
Swift
static let signSecp256k1ecdsaSHA256Raw: AlgorithmIdentifier
-
DER [ITU-X690-2008] encoded ECDSA signature [RFC5480] on the secp256k1 curve.
Declaration
Swift
static let signSecp256k1ecdsaSHA256DER: AlgorithmIdentifier
-
Chinese SM2 elliptic curve based signature algorithm combined with SM3 hash algorithm [OSCCA-SM2][OSCCA-SM3].
Declaration
Swift
static let signSM2SM3Raw: AlgorithmIdentifier
-
EMSA-PKCS1-v1_5 signature as defined in [RFC3447].
Declaration
Swift
static let signRSAEMSAPKCS1SHA256Raw: AlgorithmIdentifier
-
DER [ITU-X690-2008] encoded OCTET STRING containing the EMSA-PKCS1-v1_5 signature as defined in [RFC3447].
Declaration
Swift
static let signRSAEMSAPKCS1SHA256DER: AlgorithmIdentifier
-
Raw ANSI X9.62 formatted Elliptic Curve public key [SEC1].
Declaration
Swift
static let keyECCX962Raw: AlgorithmIdentifier
-
DER [ITU-X690-2008] encoded ANSI X.9.62 formatted SubjectPublicKeyInfo [RFC5480] specifying an elliptic curve public key.
Declaration
Swift
static let keyECCX962DER: AlgorithmIdentifier
-
Raw encoded 2048-bit RSA public key [RFC3447].
Declaration
Swift
static let keyRSA2048Raw: AlgorithmIdentifier
-
ASN.1 DER [ITU-X690-2008] encoded 2048-bit RSA [RFC3447] public key [RFC4055].
Declaration
Swift
static let keyRSA2048DER: AlgorithmIdentifier