Update comment

This commit is contained in:
Vishnu 2023-03-02 12:01:18 +05:30
parent 5ebc9b6d1e
commit 8154161f6d

View file

@ -58,10 +58,10 @@ export async function generateKeyAttributes(
return { keyAttributes, masterKey }; return { keyAttributes, masterKey };
} }
// We encrypt existingKeyAttributes with a key derived from the passphrase (with // We encrypt the masterKey, with an intermediate key derived from the
// Interactive mem and ops limits) to avoid saving them to local storage in // passphrase (with Interactive mem and ops limits) to avoid saving it to local
// plain text. This means that on the web user will always have to enter their // storage in plain text. This means that on the web user will always have to
// passphrase to access their masterKey. // enter their passphrase to access their masterKey.
export async function generateAndSaveIntermediateKeyAttributes( export async function generateAndSaveIntermediateKeyAttributes(
passphrase: string, passphrase: string,
existingKeyAttributes: KeyAttributes, existingKeyAttributes: KeyAttributes,