Instance Property

keyType

The type of the key. Currently, only kSecAttrKeyTypeRSA and kSecAttrKeyTypeECSECPrimeRandom are supported values.

Declaration

var keyType: String { get set }

Discussion

This property is equivalent to the kSecAttrKeyType type attribute.

See Also

Accessing Key Attributes

var applicationTag: Data?

The private tag data.

var publicKeyData: Data?

The public key data.

var publicKeyHash: Data?

The SHA1 hash of the raw public key.

var canDecrypt: Bool

Whether the key can be used to decrypt data.

var canSign: Bool

Whether the key can be used to sign data.

var canPerformKeyExchange: Bool

Whether the key can be used to perform Diffie-Hellman style cryptographic key exchange.

var isSuitableForLogin: Bool

Whether the key can be used for system login.