]> iEval git - authen-passphrase-scrypt.git/blame_incremental - scrypt-1.2.1/FORMAT
Bump version and update Changes
[authen-passphrase-scrypt.git] / scrypt-1.2.1 / FORMAT
... / ...
CommitLineData
1scrypt encrypted data format
2----------------------------
3
4offset length
50 6 "scrypt"
66 1 scrypt data file version number (== 0)
77 1 log2(N) (must be between 1 and 63 inclusive)
88 4 r (big-endian integer; must satisfy r * p < 2^30)
912 4 p (big-endian integer; must satisfy r * p < 2^30)
1016 32 salt
1148 16 first 16 bytes of SHA256(bytes 0 .. 47)
1264 32 HMAC-SHA256(bytes 0 .. 63)
1396 X data xor AES256-CTR key stream generated with nonce == 0
1496+X 32 HMAC-SHA256(bytes 0 .. 96 + (X - 1))
15
16AES256-CTR is computed with a 256-bit AES key key_enc, and HMAC-SHA256 is
17computed with a 256-bit key key_hmac, where
18 scrypt(password, salt, N, r, p, 64) == [key_enc][key_hmac]
This page took 0.020528 seconds and 5 git commands to generate.