Lines Matching refs:passphrase
85 key_private_rsa1_to_blob(Key *key, Buffer *blob, const char *passphrase, in key_private_rsa1_to_blob() argument
99 cipher_num = (strcmp(passphrase, "") == 0) ? in key_private_rsa1_to_blob()
150 cipher_set_key_string(&ciphercontext, cipher, passphrase, in key_private_rsa1_to_blob()
174 u_char *passphrase = (len > 0) ? (u_char *)_passphrase : NULL; in key_private_pem_to_blob() local
194 cipher, passphrase, len, NULL, NULL); in key_private_pem_to_blob()
199 cipher, passphrase, len, NULL, NULL); in key_private_pem_to_blob()
204 cipher, passphrase, len, NULL, NULL); in key_private_pem_to_blob()
241 key_private_to_blob(Key *key, Buffer *blob, const char *passphrase, in key_private_to_blob() argument
246 return key_private_rsa1_to_blob(key, blob, passphrase, comment); in key_private_to_blob()
250 return key_private_pem_to_blob(key, blob, passphrase, comment); in key_private_to_blob()
258 key_save_private(Key *key, const char *filename, const char *passphrase, in key_save_private() argument
265 if (!key_private_to_blob(key, &keyblob, passphrase, comment)) in key_save_private()
418 key_parse_private_rsa1(Buffer *blob, const char *passphrase, char **commentp) in key_parse_private_rsa1() argument
474 cipher_set_key_string(&ciphercontext, cipher, passphrase, in key_parse_private_rsa1()
486 if (strcmp(passphrase, "") != 0) in key_parse_private_rsa1()
519 key_parse_private_pem(Buffer *blob, int type, const char *passphrase, in key_parse_private_pem() argument
533 pk = PEM_read_bio_PrivateKey(bio, NULL, NULL, (char *)passphrase); in key_parse_private_pem()
596 key_load_private_pem(int fd, int type, const char *passphrase, in key_load_private_pem() argument
607 prv = key_parse_private_pem(&buffer, type, passphrase, commentp); in key_load_private_pem()
641 key_parse_private_type(Buffer *blob, int type, const char *passphrase, in key_parse_private_type() argument
646 return key_parse_private_rsa1(blob, passphrase, commentp); in key_parse_private_type()
651 return key_parse_private_pem(blob, type, passphrase, commentp); in key_parse_private_type()
660 key_load_private_type(int type, const char *filename, const char *passphrase, in key_load_private_type() argument
692 ret = key_parse_private_type(&buffer, type, passphrase, commentp); in key_load_private_type()
699 const char *passphrase, char **commentp) in key_parse_private() argument
707 passphrase, NULL); in key_parse_private()
714 prv = key_parse_private_type(buffer, KEY_RSA1, passphrase, in key_parse_private()
721 key_load_private(const char *filename, const char *passphrase, in key_load_private() argument
748 prv = key_parse_private(&buffer, filename, passphrase, commentp); in key_load_private()
845 key_load_private_cert(int type, const char *filename, const char *passphrase, in key_load_private_cert() argument
861 passphrase, NULL, perm_ok)) == NULL) in key_load_private_cert()