mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-23 00:36:42 -10:00
The keychain's key comes from the key file and this machine's identity, so a configuration carried to another machine lost every saved password. Settings > User > Keychain Passphrase wraps that same key under a passphrase in the key file, next to a wrap for this machine; nothing is sealed again, and a key file without one is unchanged. On another machine the keychain comes up locked, saves write nothing in the clear, and entering the passphrase once unlocks it, wraps it for the new machine and puts the credentials back into the running settings. The key derivation runs as a task a slice at a time, so the main thread never waits on it, with or without threads. A sealed value that cannot be opened is now taken out of what the loader sees even when there is no key at all, instead of becoming the setting's value; and only the values that failed to open are carried through a save, so clearing a password reaches the file and a normal save no longer reports credentials from another machine.