Key Generation Attributes
Use attribute dictionary keys during cryptographic key generation.
Overview
Use these dictionary keys in the parameter dictionary when you create new cryptographic keys with the SecKeyCreateRandomKey(_:_:) function. The type and size attributes are required, while all others are optional.
With the exception of kSecAttrTokenID, you can specify the optional keys in either the top-level parameter dictionary or in one of the key-specific sub-dictionaries specified by the kSecPrivateKeyAttrs and kSecPublicKeyAttrs attributes. In the latter case, the given attribute applies only to the private or public key, respectively.
Use these keys in exactly the same way for the parameter dictionary you supply to the legacy SecKeyGeneratePair(_:_:_:) function.