Class

SecKey

An object that represents a cryptographic key.

Overview

A SecKey instance that represents a key that is stored in a keychain can be safely cast to a SecKeychainItem for manipulation as a keychain item. On the other hand, if the key is not stored in a keychain, casting the object to a SecKeychainItem and passing it to Keychain Services functions returns errors.

See Also

First Steps

Getting an Existing Key

Learn how to obtain an existing cryptographic key.

Storing Keys in the Keychain

Store cryptographic keys in the keychain.

func SecKeyGetTypeID()

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