Home
last modified time | relevance | path

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

/third_party/e2fsprogs/misc/
De4crypt.c410 size_t passphrase_size = strlen(passphrase); in pbkdf2_sha512() local
415 int actual_buf_len = SHA512_LENGTH + passphrase_size; in pbkdf2_sha512()
416 int actual_saltbuf_len = EXT4_MAX_SALT_SIZE + passphrase_size; in pbkdf2_sha512()
421 if (passphrase_size > EXT4_MAX_PASSPHRASE_SIZE) { in pbkdf2_sha512()
422 printf("Passphrase size is %zd; max is %d.\n", passphrase_size, in pbkdf2_sha512()
434 memcpy(&saltbuf[EXT4_MAX_SALT_SIZE], passphrase, passphrase_size); in pbkdf2_sha512()
436 memcpy(&buf[SHA512_LENGTH], passphrase, passphrase_size); in pbkdf2_sha512()
/third_party/f2fs-tools/tools/
Df2fscrypt.c455 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()