kSecAttrTokenIDSecureEnclave

Static kSecAttrTokenIDSecureEnclave 

Source
pub unsafe static kSecAttrTokenIDSecureEnclave: &'static CFString
Available on crate feature SecItem only.
Expand description

Predefined item attribute constant used to get or set values in a dictionary. The kSecAttrTokenID constant is the key and its value can be kSecAttrTokenIDSecureEnclave.

token implemented using device’s Secure Enclave. The only keychain items supported by the Secure Enclave token are 256-bit elliptic curve keys (kSecAttrKeyTypeECSecPrimeRandom). Keys must be generated on the secure enclave using SecKeyGenerateKeyPair call with kSecAttrTokenID set to kSecAttrTokenIDSecureEnclave in the parameters dictionary, it is not possible to import pregenerated keys to kSecAttrTokenIDSecureEnclave token.

See also Apple’s documentation