Searched refs:passphrase_size (Results 1 – 2 of 2) sorted by relevance
/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()
|
/external/f2fs-tools/tools/ |
D | f2fscrypt.c | 455 size_t passphrase_size = strlen(passphrase); in pbkdf2_sha512() local 460 int actual_buf_len = SHA512_LENGTH + passphrase_size; in pbkdf2_sha512() 461 int actual_saltbuf_len = F2FS_MAX_SALT_SIZE + passphrase_size; in pbkdf2_sha512() 466 if (passphrase_size > F2FS_MAX_PASSPHRASE_SIZE) { in pbkdf2_sha512() 467 printf("Passphrase size is %zd; max is %d.\n", passphrase_size, in pbkdf2_sha512() 479 memcpy(&saltbuf[F2FS_MAX_SALT_SIZE], passphrase, passphrase_size); in pbkdf2_sha512() 481 memcpy(&buf[SHA512_LENGTH], passphrase, passphrase_size); in pbkdf2_sha512()
|