Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Unified Diff: chromeos/login/auth/key.h

Issue 515153002: Add new Chrome OS key type: Salted SHA256 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@d_2_367847_add_get_key_data_ex_call
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chromeos/login/auth/key.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/login/auth/key.h
diff --git a/chromeos/login/auth/key.h b/chromeos/login/auth/key.h
index 8aee6ddc898caa3a24b40cbd73cc3c6ac0928db7..969c8245b605864bbdceb83722506fa0cd1a44b4 100644
--- a/chromeos/login/auth/key.h
+++ b/chromeos/login/auth/key.h
@@ -17,11 +17,16 @@ class CHROMEOS_EXPORT Key {
public:
enum KeyType {
// Plain text password.
- KEY_TYPE_PASSWORD_PLAIN,
+ KEY_TYPE_PASSWORD_PLAIN = 0,
// SHA256 of salt + password, first half only, lower-case hex encoded.
- KEY_TYPE_SALTED_SHA256_TOP_HALF,
+ KEY_TYPE_SALTED_SHA256_TOP_HALF = 1,
// PBKDF2 with 256 bit AES and 1234 iterations, base64 encoded.
- KEY_TYPE_SALTED_PBKDF2_AES256_1234,
+ KEY_TYPE_SALTED_PBKDF2_AES256_1234 = 2,
+ // SHA256 of salt + password, base64 encoded.
+ KEY_TYPE_SALTED_SHA256 = 3,
+
+ // Sentinel. Must be last.
+ KEY_TYPE_COUNT
};
Key();
« no previous file with comments | « no previous file | chromeos/login/auth/key.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698