Home | History | Annotate | Download | only in pem

Lines Matching refs:nid

69                       int nid, const EVP_CIPHER *enc,
72 int nid, const EVP_CIPHER *enc,
78 * is NULL then it uses the unencrypted private key form. The 'nid' versions
82 int PEM_write_bio_PKCS8PrivateKey_nid(BIO *bp, EVP_PKEY *x, int nid,
86 return do_pk8pkey(bp, x, 0, nid, NULL, kstr, klen, cb, u);
103 int i2d_PKCS8PrivateKey_nid_bio(BIO *bp, EVP_PKEY *x, int nid,
107 return do_pk8pkey(bp, x, 1, nid, NULL, kstr, klen, cb, u);
110 static int do_pk8pkey(BIO *bp, EVP_PKEY *x, int isder, int nid,
122 if (enc || (nid != -1)) {
136 p8 = PKCS8_encrypt(nid, enc, kstr, klen, NULL, 0, 0, p8inf);
201 int i2d_PKCS8PrivateKey_nid_fp(FILE *fp, EVP_PKEY *x, int nid,
205 return do_pk8pkey_fp(fp, x, 1, nid, NULL, kstr, klen, cb, u);
208 int PEM_write_PKCS8PrivateKey_nid(FILE *fp, EVP_PKEY *x, int nid,
212 return do_pk8pkey_fp(fp, x, 0, nid, NULL, kstr, klen, cb, u);
222 static int do_pk8pkey_fp(FILE *fp, EVP_PKEY *x, int isder, int nid,
232 ret = do_pk8pkey(bp, x, isder, nid, enc, kstr, klen, cb, u);