Lines Matching refs:klen
23 const char *kstr, int klen,
30 const char *kstr, int klen,
42 const char *kstr, int klen, in PEM_write_bio_PKCS8PrivateKey_nid() argument
45 return do_pk8pkey(bp, x, 0, nid, NULL, kstr, klen, cb, u, NULL); in PEM_write_bio_PKCS8PrivateKey_nid()
49 const char *kstr, int klen, 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()
56 const char *kstr, int klen, in i2d_PKCS8PrivateKey_bio() argument
59 return do_pk8pkey(bp, x, 1, -1, enc, kstr, klen, cb, u, NULL); in i2d_PKCS8PrivateKey_bio()
63 const char *kstr, int klen, in i2d_PKCS8PrivateKey_nid_bio() argument
66 return do_pk8pkey(bp, x, 1, nid, NULL, kstr, klen, cb, u, NULL); in i2d_PKCS8PrivateKey_nid_bio()
70 const EVP_CIPHER *enc, const char *kstr, int klen, in do_pk8pkey() argument
90 klen = strlen(u); in do_pk8pkey()
118 && !OSSL_ENCODER_CTX_set_passphrase(ctx, ukstr, klen)) in do_pk8pkey()
138 klen = cb(buf, PEM_BUFSIZE, 1, u); in do_pk8pkey()
139 if (klen < 0) { in do_pk8pkey()
146 p8 = PKCS8_encrypt(nid, enc, kstr, klen, NULL, 0, 0, p8inf); in do_pk8pkey()
148 OPENSSL_cleanse(buf, klen); in do_pk8pkey()
174 int klen; in d2i_PKCS8PrivateKey_bio() local
182 klen = cb(psbuf, PEM_BUFSIZE, 0, u); in d2i_PKCS8PrivateKey_bio()
184 klen = PEM_def_callback(psbuf, PEM_BUFSIZE, 0, u); in d2i_PKCS8PrivateKey_bio()
185 if (klen < 0 || klen > PEM_BUFSIZE) { in d2i_PKCS8PrivateKey_bio()
190 p8inf = PKCS8_decrypt(p8, psbuf, klen); in d2i_PKCS8PrivateKey_bio()
192 OPENSSL_cleanse(psbuf, klen); in d2i_PKCS8PrivateKey_bio()
209 const char *kstr, int klen, in i2d_PKCS8PrivateKey_fp() argument
212 return do_pk8pkey_fp(fp, x, 1, -1, enc, kstr, klen, cb, u, NULL); in i2d_PKCS8PrivateKey_fp()
216 const char *kstr, int klen, in i2d_PKCS8PrivateKey_nid_fp() argument
219 return do_pk8pkey_fp(fp, x, 1, nid, NULL, kstr, klen, cb, u, NULL); in i2d_PKCS8PrivateKey_nid_fp()
223 const char *kstr, int klen, in PEM_write_PKCS8PrivateKey_nid() argument
226 return do_pk8pkey_fp(fp, x, 0, nid, NULL, kstr, klen, cb, u, NULL); in PEM_write_PKCS8PrivateKey_nid()
230 const char *kstr, int klen, 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()