Lines Matching refs:klen

71 				char *kstr, int klen,
75 char *kstr, int klen,
85 char *kstr, int klen, in PEM_write_bio_PKCS8PrivateKey_nid() argument
88 return do_pk8pkey(bp, x, 0, nid, NULL, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey_nid()
92 char *kstr, int klen, in PEM_write_bio_PKCS8PrivateKey() argument
95 return do_pk8pkey(bp, x, 0, -1, enc, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey()
99 char *kstr, int klen, in i2d_PKCS8PrivateKey_bio() argument
102 return do_pk8pkey(bp, x, 1, -1, enc, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_bio()
106 char *kstr, int klen, in i2d_PKCS8PrivateKey_nid_bio() argument
109 return do_pk8pkey(bp, x, 1, nid, NULL, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_nid_bio()
113 char *kstr, int klen, in do_pk8pkey() argument
126 klen = 0; in do_pk8pkey()
128 klen = cb(buf, PEM_BUFSIZE, 1, u); in do_pk8pkey()
129 if(klen <= 0) { in do_pk8pkey()
137 p8 = PKCS8_encrypt(nid, enc, kstr, klen, NULL, 0, 0, p8inf); in do_pk8pkey()
138 if(kstr == buf) OPENSSL_cleanse(buf, klen); in do_pk8pkey()
156 int klen; in d2i_PKCS8PrivateKey_bio() local
162 klen = 0; in d2i_PKCS8PrivateKey_bio()
164 klen=cb(psbuf,PEM_BUFSIZE,0,u); in d2i_PKCS8PrivateKey_bio()
165 if (klen <= 0) { in d2i_PKCS8PrivateKey_bio()
170 p8inf = PKCS8_decrypt(p8, psbuf, klen); in d2i_PKCS8PrivateKey_bio()
186 char *kstr, int klen, in i2d_PKCS8PrivateKey_fp() argument
189 return do_pk8pkey_fp(fp, x, 1, -1, enc, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_fp()
193 char *kstr, int klen, in i2d_PKCS8PrivateKey_nid_fp() argument
196 return do_pk8pkey_fp(fp, x, 1, nid, NULL, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_nid_fp()
200 char *kstr, int klen, in PEM_write_PKCS8PrivateKey_nid() argument
203 return do_pk8pkey_fp(fp, x, 0, nid, NULL, kstr, klen, cb, u); in PEM_write_PKCS8PrivateKey_nid()
207 char *kstr, int klen, pem_password_cb *cb, void *u) in PEM_write_PKCS8PrivateKey() argument
209 return do_pk8pkey_fp(fp, x, 0, -1, enc, kstr, klen, cb, u); in PEM_write_PKCS8PrivateKey()
213 char *kstr, int klen, in do_pk8pkey_fp() argument
222 ret = do_pk8pkey(bp, x, isder, nid, enc, kstr, klen, cb, u); in do_pk8pkey_fp()