Lines Matching refs:enc
22 int nid, const EVP_CIPHER *enc,
29 int nid, const EVP_CIPHER *enc,
48 int PEM_write_bio_PKCS8PrivateKey(BIO *bp, const EVP_PKEY *x, const EVP_CIPHER *enc, in PEM_write_bio_PKCS8PrivateKey() argument
52 return do_pk8pkey(bp, x, 0, -1, enc, kstr, klen, cb, u, NULL); in PEM_write_bio_PKCS8PrivateKey()
55 int i2d_PKCS8PrivateKey_bio(BIO *bp, const EVP_PKEY *x, const EVP_CIPHER *enc, in i2d_PKCS8PrivateKey_bio() argument
59 return do_pk8pkey(bp, x, 1, -1, enc, kstr, klen, cb, u, NULL); in i2d_PKCS8PrivateKey_bio()
70 const EVP_CIPHER *enc, const char *kstr, int klen, in do_pk8pkey() argument
104 if (enc != NULL) { in do_pk8pkey()
106 if (OSSL_ENCODER_CTX_set_cipher(ctx, EVP_CIPHER_get0_name(enc), in do_pk8pkey()
136 if (enc || (nid != -1)) { in do_pk8pkey()
146 p8 = PKCS8_encrypt(nid, enc, kstr, klen, NULL, 0, 0, p8inf); in do_pk8pkey()
208 int i2d_PKCS8PrivateKey_fp(FILE *fp, const EVP_PKEY *x, const EVP_CIPHER *enc, in i2d_PKCS8PrivateKey_fp() argument
212 return do_pk8pkey_fp(fp, x, 1, -1, enc, kstr, klen, cb, u, NULL); in i2d_PKCS8PrivateKey_fp()
229 int PEM_write_PKCS8PrivateKey(FILE *fp, const EVP_PKEY *x, const EVP_CIPHER *enc, in PEM_write_PKCS8PrivateKey() argument
233 return do_pk8pkey_fp(fp, x, 0, -1, enc, kstr, klen, cb, u, NULL); in PEM_write_PKCS8PrivateKey()
237 const EVP_CIPHER *enc, const char *kstr, int klen, in do_pk8pkey_fp() argument
247 ret = do_pk8pkey(bp, x, isder, nid, enc, kstr, klen, cb, u, propq); in do_pk8pkey_fp()