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

Side by Side Diff: third_party/scrypt/FORMAT

Issue 11637016: Add "scrypt" to third_party for secure password hashes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing licences. Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/scrypt/.gitattributes ('k') | third_party/scrypt/LICENSE » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 scrypt encrypted data format
2 ----------------------------
3
4 offset length
5 0 6 "scrypt"
6 6 1 scrypt data file version number (== 0)
7 7 1 log2(N) (must be between 1 and 63 inclusive)
8 8 4 r (big-endian integer; must satisfy r * p < 2^30)
9 12 4 p (big-endian integer; must satisfy r * p < 2^30)
10 16 32 salt
11 48 16 first 16 bytes of SHA256(bytes 0 .. 47)
12 64 32 HMAC-SHA256(bytes 0 .. 63)
13 96 X data xor AES256-CTR key stream generated with nonce == 0
14 96+X 32 HMAC-SHA256(bytes 96 .. 96 + (X - 1))
15
16 AES256-CTR is computed with a 256-bit AES key key_enc, and HMAC-SHA256 is
17 computed with a 256-bit key key_hmac, where
18 scrypt(password, salt, N, r, p, 64) == [key_enc][key_hmac]
OLDNEW
« no previous file with comments | « third_party/scrypt/.gitattributes ('k') | third_party/scrypt/LICENSE » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698