Returns the unique identifier of the opaque type to which a key object belongs.


func SecKeyGetTypeID() -> CFTypeID

Return Value

A value that identifies the opaque type of a SecKey object.


This function returns a value that uniquely identifies the opaque type of a SecKey object. You can compare this value to the CFTypeID identifier obtained by calling the CFGetTypeID(_:) function on a specific object. These values might change from release to release or platform to platform.

See Also

First Steps

Getting an Existing Key

Learn how to obtain an existing cryptographic key.

Storing Keys in the Keychain

Store and access cryptographic keys in the keychain.

class SecKey

An object that represents a cryptographic key.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software