Question about Data Protection class keys

In the official platform security guide, there is the following paragraph about the data protection class "Complete Protection".


(NSFileProtectionComplete): The class key is protected with a key derived from the user passcode and the device UID. Shortly after the user locks a device (10 seconds, if the Require Password setting is Immediately), the decrypted class key is discarded, rendering all data in this class inaccessible until the user enters the passcode again or unlocks the device using Touch ID or Face ID.


My question is, by "discarded", you mean this decrypted class key is wiped from the memory, or the key iteself is erased and the system generates a new key?


Thanks in advance.

Answered by Claude31 in 399247022

I understand as 'this decrypted class key is wiped from the memory'.


As it is not encrypted, that avoids anyone could tamper the phone and get data back.

Accepted Answer

I understand as 'this decrypted class key is wiped from the memory'.


As it is not encrypted, that avoids anyone could tamper the phone and get data back.

Yeah, I also think so. Thanks.

Question about Data Protection class keys
 
 
Q