Lines Matching defs:nid
22 int nid, const EVP_CIPHER *enc,
29 int nid, const EVP_CIPHER *enc,
37 * is NULL then it uses the unencrypted private key form. The 'nid' versions
41 int PEM_write_bio_PKCS8PrivateKey_nid(BIO *bp, const EVP_PKEY *x, int nid,
45 return do_pk8pkey(bp, x, 0, nid, NULL, kstr, klen, cb, u, NULL);
62 int i2d_PKCS8PrivateKey_nid_bio(BIO *bp, const EVP_PKEY *x, int nid,
66 return do_pk8pkey(bp, x, 1, nid, NULL, kstr, klen, cb, u, NULL);
69 static int do_pk8pkey(BIO *bp, const EVP_PKEY *x, int isder, int nid,
97 * NOTE: There is no attempt to do a EVP_CIPHER_fetch() using the nid,
98 * since the nid is a PBE algorithm which can't be fetched currently.
102 if (nid == -1 && OSSL_ENCODER_CTX_get_num_encoders(ctx) != 0) {
136 if (enc || (nid != -1)) {
146 p8 = PKCS8_encrypt(nid, enc, kstr, klen, NULL, 0, 0, p8inf);
215 int i2d_PKCS8PrivateKey_nid_fp(FILE *fp, const EVP_PKEY *x, int nid,
219 return do_pk8pkey_fp(fp, x, 1, nid, NULL, kstr, klen, cb, u, NULL);
222 int PEM_write_PKCS8PrivateKey_nid(FILE *fp, const EVP_PKEY *x, int nid,
226 return do_pk8pkey_fp(fp, x, 0, nid, NULL, kstr, klen, cb, u, NULL);
236 static int do_pk8pkey_fp(FILE *fp, const EVP_PKEY *x, int isder, int nid,
247 ret = do_pk8pkey(bp, x, isder, nid, enc, kstr, klen, cb, u, propq);