Home
last modified time | relevance | path

Searched refs:SHA512_LENGTH (Results 1 – 2 of 2) sorted by relevance

/external/f2fs-tools/tools/
Df2fscrypt.c158 #define SHA512_LENGTH 64 macro
455 unsigned char buf[SHA512_LENGTH + F2FS_MAX_PASSPHRASE_SIZE] = {0}; in pbkdf2_sha512()
456 unsigned char tempbuf[SHA512_LENGTH] = {0}; in pbkdf2_sha512()
457 char final[SHA512_LENGTH] = {0}; in pbkdf2_sha512()
459 int actual_buf_len = SHA512_LENGTH + passphrase_size; in pbkdf2_sha512()
475 assert(F2FS_MAX_KEY_SIZE <= SHA512_LENGTH); in pbkdf2_sha512()
480 memcpy(&buf[SHA512_LENGTH], passphrase, passphrase_size); in pbkdf2_sha512()
489 memcpy(buf, tempbuf, SHA512_LENGTH); in pbkdf2_sha512()
589 unsigned char key_ref1[SHA512_LENGTH]; in generate_key_ref_str()
590 unsigned char key_ref2[SHA512_LENGTH]; in generate_key_ref_str()
[all …]
/external/e2fsprogs/misc/
De4crypt.c108 #define SHA512_LENGTH 64 macro
410 unsigned char buf[SHA512_LENGTH + EXT4_MAX_PASSPHRASE_SIZE] = {0}; in pbkdf2_sha512()
411 unsigned char tempbuf[SHA512_LENGTH] = {0}; in pbkdf2_sha512()
412 char final[SHA512_LENGTH] = {0}; in pbkdf2_sha512()
414 int actual_buf_len = SHA512_LENGTH + passphrase_size; in pbkdf2_sha512()
430 assert(EXT4_MAX_KEY_SIZE <= SHA512_LENGTH); in pbkdf2_sha512()
435 memcpy(&buf[SHA512_LENGTH], passphrase, passphrase_size); in pbkdf2_sha512()
444 memcpy(buf, tempbuf, SHA512_LENGTH); in pbkdf2_sha512()
544 unsigned char key_ref1[SHA512_LENGTH]; in generate_key_ref_str()
545 unsigned char key_ref2[SHA512_LENGTH]; in generate_key_ref_str()
[all …]