For kSecAttrAccessibleWhenUnlocked
, data is accessible "while the device is unlocked by the user", while for kSecAttrAccessibleAfterFirstUnlock
data is accessible after the first unlock by the user "until the next restart" according to Apple's documentation.
In this use case timeline:
- Turn on device
- Unlock device
- Lock device
- Unlock device
- Restart device
- Unlock device
Would the following be correct?
For WhenUnlocked
, data is available:
- Between 2 and 3
- Between 4 and 5
- After 6
AfterFirstUnlock
, data is available:
- Between 2 and 5
- After 6
Thanks!