Lines Matching refs:enc
70 int nid, const EVP_CIPHER *enc,
74 int nid, const EVP_CIPHER *enc,
79 * replacement for PEM_write_bio_PrivateKey() and friends. As usual if 'enc'
91 int PEM_write_bio_PKCS8PrivateKey(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc,
95 return do_pk8pkey(bp, x, 0, -1, enc, kstr, klen, cb, u);
98 int i2d_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc,
102 return do_pk8pkey(bp, x, 1, -1, enc, kstr, klen, cb, u);
112 static int do_pk8pkey(BIO *bp, EVP_PKEY *x, int isder, int nid, const EVP_CIPHER *enc,
125 if(enc || (nid != -1)) {
137 p8 = PKCS8_encrypt(nid, enc, kstr, klen, NULL, 0, 0, p8inf);
183 int i2d_PKCS8PrivateKey_fp(FILE *fp, EVP_PKEY *x, const EVP_CIPHER *enc,
187 return do_pk8pkey_fp(fp, x, 1, -1, enc, kstr, klen, cb, u);
204 int PEM_write_PKCS8PrivateKey(FILE *fp, EVP_PKEY *x, const EVP_CIPHER *enc,
207 return do_pk8pkey_fp(fp, x, 0, -1, enc, kstr, klen, cb, u);
210 static int do_pk8pkey_fp(FILE *fp, EVP_PKEY *x, int isder, int nid, const EVP_CIPHER *enc,
220 ret = do_pk8pkey(bp, x, isder, nid, enc, kstr, klen, cb, u);