Lines Matching refs:passphrase
3044 const char *passphrase, const char *comment, const char *ciphername,
3062 if (passphrase == NULL || !strlen(passphrase)) {
3092 if (bcrypt_pbkdf(passphrase, strlen(passphrase),
3196 sshkey_parse_private2(struct sshbuf *blob, int type, const char *passphrase,
3284 passphrase == NULL || strlen(passphrase) == 0) &&
3286 /* passphrase required */
3322 if (bcrypt_pbkdf(passphrase, strlen(passphrase), salt, slen,
3336 /* an integrity error here indicates an incorrect passphrase */
3411 * passphrase. The identification of the blob (lowest 64 bits of n) will
3413 * passphrase.
3417 const char *passphrase, const char *comment)
3427 * If the passphrase is empty, use SSH_CIPHER_NONE to ease converting
3430 cipher_num = (strcmp(passphrase, "") == 0) ?
3439 /* Put checkbytes for checking passphrase validity. */
3489 if ((r = cipher_set_key_string(&ciphercontext, cipher, passphrase,
3520 u_char *passphrase = (len > 0) ? (u_char *)_passphrase : NULL;
3537 cipher, passphrase, len, NULL, NULL);
3542 cipher, passphrase, len, NULL, NULL);
3547 cipher, passphrase, len, NULL, NULL);
3573 const char *passphrase, const char *comment,
3580 passphrase, comment);
3587 return sshkey_private_to_blob2(key, blob, passphrase,
3591 passphrase, comment);
3594 return sshkey_private_to_blob2(key, blob, passphrase,
3668 sshkey_parse_private_rsa1(struct sshbuf *blob, const char *passphrase,
3730 /* Rest of the buffer is encrypted. Decrypt it using the passphrase. */
3731 if ((r = cipher_set_key_string(&ciphercontext, cipher, passphrase,
3790 const char *passphrase, struct sshkey **keyp)
3808 (char *)passphrase)) == NULL) {
3880 const char *passphrase, struct sshkey **keyp, char **commentp)
3891 return sshkey_parse_private_rsa1(blob, passphrase,
3899 passphrase, keyp);
3902 return sshkey_parse_private2(blob, type, passphrase,
3905 if ((r = sshkey_parse_private2(blob, type, passphrase, keyp,
3910 passphrase, keyp);
3920 sshkey_parse_private_fileblob(struct sshbuf *buffer, const char *passphrase,
3934 passphrase, keyp, commentp);
3938 passphrase, keyp, commentp)) == 0)