Home | History | Annotate | Download | only in misc

Lines Matching refs:passphrase

405 static void pbkdf2_sha512(const char *passphrase, struct salt *salt,
409 size_t passphrase_size = strlen(passphrase);
421 printf("Passphrase size is %zd; max is %d.\n", passphrase_size,
433 memcpy(&saltbuf[EXT4_MAX_SALT_SIZE], passphrase, passphrase_size);
435 memcpy(&buf[SHA512_LENGTH], passphrase, passphrase_size);
442 * buf: [previous hash || passphrase]
468 static void get_passphrase(char *passphrase, int len)
475 p = fgets(passphrase, len, stdin);
482 p = strrchr(passphrase, '\n');
484 p = passphrase + len - 1;
636 "Prompts the user for a passphrase and inserts it into the specified\n" \
660 /* Salt value for passphrase. */
686 printf("Enter passphrase (echo disabled): ");