Contents

kSecAttrTokenIDSecureEnclave

Specifies an item should be protected by the device’s Secure Enclave.

Declaration

let kSecAttrTokenIDSecureEnclave: CFString

Mentioned in

Discussion

To generate a new key that’s protected by the Secure Enclave, call SecKeyGeneratePair(_:_:_:), setting the kSecAttrTokenID key in the parameters dictionary to kSecAttrTokenIDSecureEnclave. For an example, see Protecting keys with the Secure Enclave.