Advertisement
AnthonyCagliano

Untitled

Jan 12th, 2022
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. hashlib_PBKDF2(const uint8_t* password, size_t plen, uint8_t* out, const uint8_t* salt, size_t slen, uint24_t iter_count, size_t keylen){
  2. HASH = sha256
  3. DK = T(i) for i in 0 => (keylen/HASH), concat
  4. T(i) = F(password, salt, c, i) = U1 xor U2 xor ... xor Uc
  5. U1 = PRF(Password, Salt + INT_32_BE(i))
  6. U2 = PRF(Password, U1)
  7. Uc = PRF(Password, Uc−1)
  8. }
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement