Skip to main content

Module local_user_data_key_state

Module local_user_data_key_state 

Source

Structsยง

InitLocalUserDataKeyError ๐Ÿ”’
MigrateLocalUserDataKeyForUserKeyUpgradeError ๐Ÿ”’
UnableToGetError ๐Ÿ”’

Functionsยง

get_local_user_data_key_from_state ๐Ÿ”’
Retrieves the WrappedLocalUserDataKey from state.
initialize_local_user_data_key_into_state ๐Ÿ”’
Stores WrappedLocalUserDataKey in state if one does not already exist.
migrate_local_user_data_key_for_user_key_upgrade ๐Ÿ”’
Re-wraps a persisted WrappedLocalUserDataKey with the current user key after a V1โ†’V2 user-key upgrade, preserving the inner-key plaintext so local data encrypted before the upgrade remains decryptable. No-ops when migration is unnecessary or impossible.