Lines Matching refs:passphrase

7  * for reading the passphrase from the user.
80 * passphrase. The identification of the blob (lowest 64 bits of n) will
82 * passphrase.
85 key_private_rsa1_to_blob(Key *key, Buffer *blob, const char *passphrase,
96 * If the passphrase is empty, use SSH_CIPHER_NONE to ease converting
99 cipher_num = (strcmp(passphrase, "") == 0) ?
107 /* Put checkbytes for checking passphrase validity. */
150 cipher_set_key_string(&ciphercontext, cipher, passphrase,
174 u_char *passphrase = (len > 0) ? (u_char *)_passphrase : NULL;
184 error("passphrase too short: have %d bytes, need > 4", len);
194 cipher, passphrase, len, NULL, NULL);
199 cipher, passphrase, len, NULL, NULL);
204 cipher, passphrase, len, NULL, NULL);
241 key_private_to_blob(Key *key, Buffer *blob, const char *passphrase,
246 return key_private_rsa1_to_blob(key, blob, passphrase, comment);
250 return key_private_pem_to_blob(key, blob, passphrase, comment);
258 key_save_private(Key *key, const char *filename, const char *passphrase,
265 if (!key_private_to_blob(key, &keyblob, passphrase, comment))
418 key_parse_private_rsa1(Buffer *blob, const char *passphrase, char **commentp)
473 /* Rest of the buffer is encrypted. Decrypt it using the passphrase. */
474 cipher_set_key_string(&ciphercontext, cipher, passphrase,
486 if (strcmp(passphrase, "") != 0)
487 debug("Bad passphrase supplied for RSA1 key");
488 /* Bad passphrase. */
519 key_parse_private_pem(Buffer *blob, int type, const char *passphrase,
533 pk = PEM_read_bio_PrivateKey(bio, NULL, NULL, (char *)passphrase);
596 key_load_private_pem(int fd, int type, const char *passphrase,
607 prv = key_parse_private_pem(&buffer, type, passphrase, commentp);
641 key_parse_private_type(Buffer *blob, int type, const char *passphrase,
646 return key_parse_private_rsa1(blob, passphrase, commentp);
651 return key_parse_private_pem(blob, type, passphrase, commentp);
660 key_load_private_type(int type, const char *filename, const char *passphrase,
692 ret = key_parse_private_type(&buffer, type, passphrase, commentp);
699 const char *passphrase, char **commentp)
707 passphrase, NULL);
714 prv = key_parse_private_type(buffer, KEY_RSA1, passphrase,
721 key_load_private(const char *filename, const char *passphrase,
748 prv = key_parse_private(&buffer, filename, passphrase, commentp);
845 key_load_private_cert(int type, const char *filename, const char *passphrase,
861 passphrase, NULL, perm_ok)) == NULL)