Lines Matching defs:passphrase
27 * supplied passphrase.
29 static EVP_PKEY *load_key(OSSL_LIB_CTX *libctx, FILE *f, const char *passphrase)
55 * Set passphrase if provided; needed to decrypt encrypted PEM files.
56 * If the input is not encrypted, any passphrase provided is ignored.
60 * interactive applications which do not know if a passphrase should be
63 if (passphrase != NULL) {
65 (const unsigned char *)passphrase,
66 strlen(passphrase)) == 0) {
98 * If a passphrase is supplied, the file is encrypted, otherwise
101 static int store_key(EVP_PKEY *pkey, FILE *f, const char *passphrase)
119 * key if a passphrase is provided and the public key otherwise.
121 selection = (passphrase != NULL)
132 * Set passphrase if provided; the encoded output will then be encrypted
133 * using the passphrase.
140 * Note that specifying a passphrase alone is not enough to cause the
141 * key to be encrypted. You must set both a cipher and a passphrase.
143 if (passphrase != NULL) {
150 /* Set passphrase. */
152 (const unsigned char *)passphrase,
153 strlen(passphrase)) == 0) {
178 /* usage: rsa_encode <passphrase-in> <passphrase-out> */