Home | History | Annotate | Download | only in public

Lines Matching refs:passphrase

22 // Reasons due to which Cryptographer might require a passphrase.
26 // passphrase for its first attempt at
30 // passphrase for its first attempt at
34 // The different states for the encryption passphrase. These control if and how
35 // the user should be prompted for a decryption passphrase.
37 IMPLICIT_PASSPHRASE = 0, // GAIA-based passphrase (deprecated).
38 KEYSTORE_PASSPHRASE = 1, // Keystore passphrase.
39 FROZEN_IMPLICIT_PASSPHRASE = 2, // Frozen GAIA passphrase.
40 CUSTOM_PASSPHRASE = 3, // User-provided passphrase.
62 // Called when user interaction is required to obtain a valid passphrase.
63 // - If the passphrase is required for encryption, |reason| will be
65 // - If the passphrase is required for the decryption of data that has
67 // - If the passphrase is required because decryption failed, and a new
68 // passphrase is required, |reason| will be REASON_SET_PASSPHRASE_FAILED.
75 // Called when the passphrase provided by the user has been accepted and is
80 // generated by the current passphrase, and is provided to the observer for
86 // passphrase.
116 // The passphrase type has changed. |type| is the new type,
117 // |passphrase_time| is the time the passphrase was set (unset if |type|
118 // is KEYSTORE_PASSPHRASE or the passphrase was set before we started
142 // Attempts to re-encrypt encrypted data types using the passphrase provided.
146 // subsequent requests to set a passphrase. If the cryptographer has pending
147 // keys, and a new implicit passphrase is provided, we try decrypting the
148 // pending keys with it, and if that fails, we cache the passphrase for
150 virtual void SetEncryptionPassphrase(const std::string& passphrase,
153 // Provides a passphrase for decrypting the user's existing sync data.
156 // appropriate if there is a previously cached encryption passphrase. It is an
158 virtual void SetDecryptionPassphrase(const std::string& passphrase) = 0;
167 // Returns the current state of the passphrase needed to decrypt the