Lines Matching defs:passphrase

3020     const char *passphrase, const char *comment, const char *ciphername,
3038 if (passphrase == NULL || !strlen(passphrase)) {
3068 if (bcrypt_pbkdf(passphrase, strlen(passphrase),
3172 sshkey_parse_private2(struct sshbuf *blob, int type, const char *passphrase,
3260 if ((passphrase == NULL || strlen(passphrase) == 0) &&
3262 /* passphrase required */
3299 if (bcrypt_pbkdf(passphrase, strlen(passphrase), salt, slen,
3319 /* an integrity error here indicates an incorrect passphrase */
3394 * passphrase. The identification of the blob (lowest 64 bits of n) will
3396 * passphrase.
3400 const char *passphrase, const char *comment)
3410 * If the passphrase is empty, use SSH_CIPHER_NONE to ease converting
3413 cipher_num = (strcmp(passphrase, "") == 0) ?
3422 /* Put checkbytes for checking passphrase validity. */
3472 if ((r = cipher_set_key_string(&ciphercontext, cipher, passphrase,
3501 u_char *passphrase = (len > 0) ? (u_char *)_passphrase : NULL;
3518 cipher, passphrase, len, NULL, NULL);
3523 cipher, passphrase, len, NULL, NULL);
3528 cipher, passphrase, len, NULL, NULL);
3554 const char *passphrase, const char *comment,
3561 passphrase, comment);
3568 return sshkey_private_to_blob2(key, blob, passphrase,
3572 passphrase, comment);
3575 return sshkey_private_to_blob2(key, blob, passphrase,
3647 sshkey_parse_private_rsa1(struct sshbuf *blob, const char *passphrase,
3709 /* Rest of the buffer is encrypted. Decrypt it using the passphrase. */
3710 if ((r = cipher_set_key_string(&ciphercontext, cipher, passphrase,
3765 const char *passphrase, struct sshkey **keyp)
3783 (char *)passphrase)) == NULL) {
3854 const char *passphrase, struct sshkey **keyp, char **commentp)
3863 return sshkey_parse_private_rsa1(blob, passphrase,
3871 passphrase, keyp);
3874 return sshkey_parse_private2(blob, type, passphrase,
3877 if (sshkey_parse_private2(blob, type, passphrase, keyp,
3882 passphrase, keyp);
3892 sshkey_parse_private_fileblob(struct sshbuf *buffer, const char *passphrase,
3904 passphrase, keyp, commentp);
3908 passphrase, keyp, commentp);