Home | History | Annotate | Download | only in openssh

Lines Matching refs:passphrase

2991     const char *passphrase, const char *comment, const char *ciphername,
3009 if (passphrase == NULL || !strlen(passphrase)) {
3039 if (bcrypt_pbkdf(passphrase, strlen(passphrase),
3143 sshkey_parse_private2(struct sshbuf *blob, int type, const char *passphrase,
3231 if ((passphrase == NULL || strlen(passphrase) == 0) &&
3233 /* passphrase required */
3270 if (bcrypt_pbkdf(passphrase, strlen(passphrase), salt, slen,
3290 /* an integrity error here indicates an incorrect passphrase */
3365 * passphrase. The identification of the blob (lowest 64 bits of n) will
3367 * passphrase.
3371 const char *passphrase, const char *comment)
3381 * If the passphrase is empty, use SSH_CIPHER_NONE to ease converting
3384 cipher_num = (strcmp(passphrase, "") == 0) ?
3393 /* Put checkbytes for checking passphrase validity. */
3443 if ((r = cipher_set_key_string(&ciphercontext, cipher, passphrase,
3474 u_char *passphrase = (len > 0) ? (u_char *)_passphrase : NULL;
3491 cipher, passphrase, len, NULL, NULL);
3496 cipher, passphrase, len, NULL, NULL);
3501 cipher, passphrase, len, NULL, NULL);
3527 const char *passphrase, const char *comment,
3534 passphrase, comment);
3541 return sshkey_private_to_blob2(key, blob, passphrase,
3545 passphrase, comment);
3548 return sshkey_private_to_blob2(key, blob, passphrase,
3622 sshkey_parse_private_rsa1(struct sshbuf *blob, const char *passphrase,
3684 /* Rest of the buffer is encrypted. Decrypt it using the passphrase. */
3685 if ((r = cipher_set_key_string(&ciphercontext, cipher, passphrase,
3744 const char *passphrase, struct sshkey **keyp)
3762 (char *)passphrase)) == NULL) {
3834 const char *passphrase, struct sshkey **keyp, char **commentp)
3845 return sshkey_parse_private_rsa1(blob, passphrase,
3853 passphrase, keyp);
3856 return sshkey_parse_private2(blob, type, passphrase,
3859 if ((r = sshkey_parse_private2(blob, type, passphrase, keyp,
3864 passphrase, keyp);
3874 sshkey_parse_private_fileblob(struct sshbuf *buffer, const char *passphrase,
3888 passphrase, keyp, commentp);
3892 passphrase, keyp, commentp)) == 0)