3

I would like to know if I can use the iPhone's secure element to store a pair of keys. I need to store them in the safest emplacement, and I can't think of a better one than the secure element.

2 Answers2

3

You can do this by setting kSecAttrTokenID to kSecAttrTokenIDSecureEnclave when generating the key. According to the documentation (which consists of some comments in SecItem.h), the only kinds of keys the secure enclave can store are elliptic curve secp256r1 keys. You can't put RSA keys there, for example.

Wim Lewis
  • 271
  • 1
  • 3
2

The secure element is not exposed to developers, and likely requires a custom entitlement in the App Store / App review process that isn't given out

makerofthings7
  • 50,090
  • 54
  • 250
  • 536