Searched refs:passphrase_size (Results 1 – 2 of 2) sorted by relevance
/external/f2fs-tools/tools/ |
D | f2fscrypt.c | 454 size_t passphrase_size = strlen(passphrase); in pbkdf2_sha512() local 459 int actual_buf_len = SHA512_LENGTH + passphrase_size; in pbkdf2_sha512() 460 int actual_saltbuf_len = F2FS_MAX_SALT_SIZE + passphrase_size; in pbkdf2_sha512() 465 if (passphrase_size > F2FS_MAX_PASSPHRASE_SIZE) { in pbkdf2_sha512() 466 printf("Passphrase size is %zd; max is %d.\n", passphrase_size, in pbkdf2_sha512() 478 memcpy(&saltbuf[F2FS_MAX_SALT_SIZE], passphrase, passphrase_size); in pbkdf2_sha512() 480 memcpy(&buf[SHA512_LENGTH], passphrase, passphrase_size); in pbkdf2_sha512()
|
/external/e2fsprogs/misc/ |
D | e4crypt.c | 409 size_t passphrase_size = strlen(passphrase); in pbkdf2_sha512() local 414 int actual_buf_len = SHA512_LENGTH + passphrase_size; in pbkdf2_sha512() 415 int actual_saltbuf_len = EXT4_MAX_SALT_SIZE + passphrase_size; in pbkdf2_sha512() 420 if (passphrase_size > EXT4_MAX_PASSPHRASE_SIZE) { in pbkdf2_sha512() 421 printf("Passphrase size is %zd; max is %d.\n", passphrase_size, in pbkdf2_sha512() 433 memcpy(&saltbuf[EXT4_MAX_SALT_SIZE], passphrase, passphrase_size); in pbkdf2_sha512() 435 memcpy(&buf[SHA512_LENGTH], passphrase, passphrase_size); in pbkdf2_sha512()
|