Lines Matching refs:bp

33 static EVP_PKEY *pem_read_bio_key_decoder(BIO *bp, EVP_PKEY **x,  in pem_read_bio_key_decoder()  argument
43 if ((pos = BIO_tell(bp)) < 0) in pem_read_bio_key_decoder()
60 while (!OSSL_DECODER_from_bio(dctx, bp) || pkey == NULL) in pem_read_bio_key_decoder()
61 if (BIO_eof(bp) != 0 || (newpos = BIO_tell(bp)) < 0 || newpos <= pos) { in pem_read_bio_key_decoder()
99 static EVP_PKEY *pem_read_bio_key_legacy(BIO *bp, EVP_PKEY **x, in pem_read_bio_key_legacy() argument
116 bp, cb, u)) { in pem_read_bio_key_legacy()
127 bp, cb, u)) { in pem_read_bio_key_legacy()
214 static EVP_PKEY *pem_read_bio_key(BIO *bp, EVP_PKEY **x, in pem_read_bio_key() argument
225 if ((pos = BIO_tell(bp)) < 0) { in pem_read_bio_key()
229 bp = BIO_push(new_bio, bp); in pem_read_bio_key()
230 pos = BIO_tell(bp); in pem_read_bio_key()
241 ret = pem_read_bio_key_decoder(bp, x, ossl_pw_pem_password, &pwdata, in pem_read_bio_key()
244 && (BIO_seek(bp, pos) < 0 in pem_read_bio_key()
245 || (ret = pem_read_bio_key_legacy(bp, x, in pem_read_bio_key()
262 EVP_PKEY *PEM_read_bio_PUBKEY_ex(BIO *bp, EVP_PKEY **x, in PEM_read_bio_PUBKEY_ex() argument
266 return pem_read_bio_key(bp, x, cb, u, libctx, propq, in PEM_read_bio_PUBKEY_ex()
270 EVP_PKEY *PEM_read_bio_PUBKEY(BIO *bp, EVP_PKEY **x, pem_password_cb *cb, in PEM_read_bio_PUBKEY() argument
273 return PEM_read_bio_PUBKEY_ex(bp, x, cb, u, NULL, NULL); in PEM_read_bio_PUBKEY()
300 EVP_PKEY *PEM_read_bio_PrivateKey_ex(BIO *bp, EVP_PKEY **x, in PEM_read_bio_PrivateKey_ex() argument
304 return pem_read_bio_key(bp, x, cb, u, libctx, propq, in PEM_read_bio_PrivateKey_ex()
309 EVP_PKEY *PEM_read_bio_PrivateKey(BIO *bp, EVP_PKEY **x, pem_password_cb *cb, in PEM_read_bio_PrivateKey() argument
312 return PEM_read_bio_PrivateKey_ex(bp, x, cb, u, NULL, NULL); in PEM_read_bio_PrivateKey()
339 int PEM_write_bio_PrivateKey_traditional(BIO *bp, const EVP_PKEY *x, in PEM_write_bio_PrivateKey_traditional() argument
363 pem_str, bp, x, enc, kstr, klen, cb, u); in PEM_write_bio_PrivateKey_traditional()
374 EVP_PKEY *PEM_read_bio_Parameters_ex(BIO *bp, EVP_PKEY **x, in PEM_read_bio_Parameters_ex() argument
381 return pem_read_bio_key(bp, x, no_password_cb, NULL, libctx, propq, in PEM_read_bio_Parameters_ex()
385 EVP_PKEY *PEM_read_bio_Parameters(BIO *bp, EVP_PKEY **x) in PEM_read_bio_Parameters() argument
387 return PEM_read_bio_Parameters_ex(bp, x, NULL, NULL); in PEM_read_bio_Parameters()