Home
last modified time | relevance | path

Searched refs:OSSL_CORE_BIO (Results 1 – 25 of 34) sorted by relevance

12

/freebsd/crypto/openssl/crypto/bio/
H A Dossl_core_bio.c24 static OSSL_CORE_BIO *core_bio_new(void) in core_bio_new()
26 OSSL_CORE_BIO *cb = OPENSSL_malloc(sizeof(*cb)); in core_bio_new()
36 int ossl_core_bio_up_ref(OSSL_CORE_BIO *cb) in ossl_core_bio_up_ref()
43 int ossl_core_bio_free(OSSL_CORE_BIO *cb) in ossl_core_bio_free()
58 OSSL_CORE_BIO *ossl_core_bio_new_from_bio(BIO *bio) in ossl_core_bio_new_from_bio()
60 OSSL_CORE_BIO *cb = core_bio_new(); in ossl_core_bio_new_from_bio()
70 static OSSL_CORE_BIO *core_bio_new_from_new_bio(BIO *bio) in core_bio_new_from_new_bio()
72 OSSL_CORE_BIO *cb = NULL; in core_bio_new_from_new_bio()
84 OSSL_CORE_BIO *ossl_core_bio_new_file(const char *filename, const char *mode) in ossl_core_bio_new_file()
89 OSSL_CORE_BIO *ossl_core_bio_new_mem_buf(const void *buf, int len) in ossl_core_bio_new_mem_buf()
[all …]
H A Dbss_core.c133 BIO *BIO_new_from_core_bio(OSSL_LIB_CTX *libctx, OSSL_CORE_BIO *corebio) in BIO_new_from_core_bio()
/freebsd/crypto/openssl/providers/common/include/prov/
H A Dbio.h17 OSSL_CORE_BIO *ossl_prov_bio_new_file(const char *filename, const char *mode);
18 OSSL_CORE_BIO *ossl_prov_bio_new_membuf(const char *filename, int len);
19 int ossl_prov_bio_read_ex(OSSL_CORE_BIO *bio, void *data, size_t data_len,
21 int ossl_prov_bio_write_ex(OSSL_CORE_BIO *bio, const void *data, size_t data_len,
23 int ossl_prov_bio_gets(OSSL_CORE_BIO *bio, char *buf, int size);
24 int ossl_prov_bio_puts(OSSL_CORE_BIO *bio, const char *str);
25 int ossl_prov_bio_ctrl(OSSL_CORE_BIO *bio, int cmd, long num, void *ptr);
26 int ossl_prov_bio_up_ref(OSSL_CORE_BIO *bio);
27 int ossl_prov_bio_free(OSSL_CORE_BIO *bio);
28 int ossl_prov_bio_vprintf(OSSL_CORE_BIO *bio, const char *format, va_list ap);
[all …]
/freebsd/crypto/openssl/include/internal/
H A Dbio.h75 OSSL_CORE_BIO *ossl_core_bio_new_from_bio(BIO *bio);
76 OSSL_CORE_BIO *ossl_core_bio_new_file(const char *filename, const char *mode);
77 OSSL_CORE_BIO *ossl_core_bio_new_mem_buf(const void *buf, int len);
78 int ossl_core_bio_read_ex(OSSL_CORE_BIO *cb, void *data, size_t dlen,
80 int ossl_core_bio_write_ex(OSSL_CORE_BIO *cb, const void *data, size_t dlen,
82 int ossl_core_bio_gets(OSSL_CORE_BIO *cb, char *buf, int size);
83 int ossl_core_bio_puts(OSSL_CORE_BIO *cb, const char *buf);
84 long ossl_core_bio_ctrl(OSSL_CORE_BIO *cb, int cmd, long larg, void *parg);
85 int ossl_core_bio_up_ref(OSSL_CORE_BIO *cb);
86 int ossl_core_bio_free(OSSL_CORE_BIO *cb);
[all …]
/freebsd/crypto/openssl/providers/common/
H A Dbio_prov.c76 OSSL_CORE_BIO *ossl_prov_bio_new_file(const char *filename, const char *mode) in ossl_prov_bio_new_file()
83 OSSL_CORE_BIO *ossl_prov_bio_new_membuf(const char *filename, int len) in ossl_prov_bio_new_membuf()
90 int ossl_prov_bio_read_ex(OSSL_CORE_BIO *bio, void *data, size_t data_len, in ossl_prov_bio_read_ex()
98 int ossl_prov_bio_write_ex(OSSL_CORE_BIO *bio, const void *data, size_t data_len, in ossl_prov_bio_write_ex()
106 int ossl_prov_bio_gets(OSSL_CORE_BIO *bio, char *buf, int size) in ossl_prov_bio_gets()
113 int ossl_prov_bio_puts(OSSL_CORE_BIO *bio, const char *str) in ossl_prov_bio_puts()
120 int ossl_prov_bio_ctrl(OSSL_CORE_BIO *bio, int cmd, long num, void *ptr) in ossl_prov_bio_ctrl()
127 int ossl_prov_bio_up_ref(OSSL_CORE_BIO *bio) in ossl_prov_bio_up_ref()
134 int ossl_prov_bio_free(OSSL_CORE_BIO *bio) in ossl_prov_bio_free()
141 int ossl_prov_bio_vprintf(OSSL_CORE_BIO *bio, const char *format, va_list ap) in ossl_prov_bio_vprintf()
[all …]
/freebsd/crypto/openssl/test/
H A Dbio_core_test.c19 static int tst_bio_core_read_ex(OSSL_CORE_BIO *bio, char *data, size_t data_len, in tst_bio_core_read_ex()
25 static int tst_bio_core_write_ex(OSSL_CORE_BIO *bio, const char *data, in tst_bio_core_write_ex()
31 static int tst_bio_core_gets(OSSL_CORE_BIO *bio, char *buf, int size) in tst_bio_core_gets()
36 static int tst_bio_core_puts(OSSL_CORE_BIO *bio, const char *str) in tst_bio_core_puts()
41 static long tst_bio_core_ctrl(OSSL_CORE_BIO *bio, int cmd, long num, void *ptr) in tst_bio_core_ctrl()
46 static int tst_bio_core_up_ref(OSSL_CORE_BIO *bio) in tst_bio_core_up_ref()
51 static int tst_bio_core_free(OSSL_CORE_BIO *bio) in tst_bio_core_free()
72 OSSL_CORE_BIO corebio; in test_bio_core()
H A Dprovfetchtest.c19 static int dummy_decoder_decode(void *ctx, OSSL_CORE_BIO *cin, int selection, in dummy_decoder_decode()
36 static int dummy_encoder_encode(void *ctx, OSSL_CORE_BIO *out, in dummy_encoder_encode()
/freebsd/crypto/openssl/doc/man3/
H A DBIO_s_core.pod5 BIO_s_core, BIO_new_from_core_bio - OSSL_CORE_BIO functions
13 BIO *BIO_new_from_core_bio(OSSL_LIB_CTX *libctx, OSSL_CORE_BIO *corebio);
21 libcrypto into a provider supply an OSSL_CORE_BIO parameter. This represents
25 Once a BIO is constructed based on BIO_s_core(), the associated OSSL_CORE_BIO
33 then also sets the OSSL_CORE_BIO object on the BIO using BIO_set_data(3).
51 int some_function(OSSL_LIB_CTX *libctx, OSSL_CORE_BIO *corebio) {
/freebsd/crypto/openssl/providers/implementations/encode_decode/
H A Dencode_key2ms.c38 static int write_msblob(struct key2ms_ctx_st *ctx, OSSL_CORE_BIO *cout, in write_msblob()
52 static int write_pvk(struct key2ms_ctx_st *ctx, OSSL_CORE_BIO *cout, in write_pvk()
129 OSSL_CORE_BIO *cout, evp_pkey_set1_fn *set1_key, in key2msblob_encode()
151 OSSL_CORE_BIO *cout, evp_pkey_set1_fn *set1_key, in key2pvk_encode()
196 static int impl##2##output##_encode(void *vctx, OSSL_CORE_BIO *cout, \
H A Dencode_key2blob.c29 static int write_blob(void *provctx, OSSL_CORE_BIO *cout, in write_blob()
89 OSSL_CORE_BIO *cout) in key2blob_encode()
144 static int impl##2blob_encode(void *vctx, OSSL_CORE_BIO *cout, \
H A Ddecode_pem2der.c31 static int read_pem(PROV_CTX *provctx, OSSL_CORE_BIO *cin, in read_pem()
95 static int pem2der_decode(void *vctx, OSSL_CORE_BIO *cin, int selection, in pem2der_decode()
H A Dendecoder_local.h27 int ossl_read_der(PROV_CTX *provctx, OSSL_CORE_BIO *cin, unsigned char **data,
H A Dendecoder_common.c87 int ossl_read_der(PROV_CTX *provctx, OSSL_CORE_BIO *cin, unsigned char **data, in ossl_read_der()
H A Ddecode_spki2typespki.c51 static int spki2typespki_decode(void *vctx, OSSL_CORE_BIO *cin, int selection, in spki2typespki_decode()
H A Ddecode_epki2pki.c58 static int epki2pki_decode(void *vctx, OSSL_CORE_BIO *cin, int selection, in epki2pki_decode()
H A Ddecode_pvk2key.c93 static int pvk2key_decode(void *vctx, OSSL_CORE_BIO *cin, int selection, in pvk2key_decode()
H A Ddecode_msblob2key.c94 static int msblob2key_decode(void *vctx, OSSL_CORE_BIO *cin, int selection, in msblob2key_decode()
/freebsd/crypto/openssl/include/openssl/
H A Dcore_dispatch.h161 OSSL_CORE_MAKE_FUNC(OSSL_CORE_BIO *, BIO_new_file, (const char *filename,
163 OSSL_CORE_MAKE_FUNC(OSSL_CORE_BIO *, BIO_new_membuf, (const void *buf, int len))
164 OSSL_CORE_MAKE_FUNC(int, BIO_read_ex, (OSSL_CORE_BIO *bio, void *data,
166 OSSL_CORE_MAKE_FUNC(int, BIO_write_ex, (OSSL_CORE_BIO *bio, const void *data,
168 OSSL_CORE_MAKE_FUNC(int, BIO_gets, (OSSL_CORE_BIO *bio, char *buf, int size))
169 OSSL_CORE_MAKE_FUNC(int, BIO_puts, (OSSL_CORE_BIO *bio, const char *str))
170 OSSL_CORE_MAKE_FUNC(int, BIO_up_ref, (OSSL_CORE_BIO *bio))
171 OSSL_CORE_MAKE_FUNC(int, BIO_free, (OSSL_CORE_BIO *bio))
172 OSSL_CORE_MAKE_FUNC(int, BIO_vprintf, (OSSL_CORE_BIO *bio, const char *format,
176 OSSL_CORE_MAKE_FUNC(int, BIO_ctrl, (OSSL_CORE_BIO *bio,
[all …]
H A Dcore.h32 typedef struct ossl_core_bio_st OSSL_CORE_BIO; typedef
/freebsd/crypto/openssl/providers/implementations/storemgmt/
H A Dfile_store_any2obj.c83 static int der2obj_decode(void *provctx, OSSL_CORE_BIO *cin, int selection, in der2obj_decode()
109 static int msblob2obj_decode(void *provctx, OSSL_CORE_BIO *cin, int selection, in msblob2obj_decode()
178 static int pvk2obj_decode(void *provctx, OSSL_CORE_BIO *cin, int selection, in pvk2obj_decode()
/freebsd/crypto/openssl/doc/man7/
H A Dprovider-decoder.pod31 int OSSL_FUNC_decoder_decode(void *ctx, OSSL_CORE_BIO *in,
50 read from the given B<OSSL_CORE_BIO>. If the caller wants to decode
55 The decoder doesn't need to know more about the B<OSSL_CORE_BIO>
82 (OSSL_FUNC_decoder_decode_fn)(void *ctx, OSSL_CORE_BIO *in,
226 the B<OSSL_CORE_BIO> I<in> to produce decoded data or an object to be
H A Dprovider-encoder.pod31 int OSSL_FUNC_encoder_encode(void *ctx, OSSL_CORE_BIO *out,
52 the given OSSL_CORE_BIO. If the caller wants to get the encoded
55 The encoder doesn't need to know more about the B<OSSL_CORE_BIO>
98 (OSSL_FUNC_encoder_encode_fn)(void *ctx, OSSL_CORE_BIO *out,
243 the object in encoded form to the B<OSSL_CORE_BIO>. The I<selection> bits,
H A Dprovider-base.pod62 OSSL_CORE_BIO *BIO_new_file(const char *filename, const char *mode);
63 OSSL_CORE_BIO *BIO_new_membuf(const void *buf, int len);
64 int BIO_read_ex(OSSL_CORE_BIO *bio, void *data, size_t data_len,
66 int BIO_write_ex(OSSL_CORE_BIO *bio, const void *data, size_t data_len,
68 int BIO_up_ref(OSSL_CORE_BIO *bio);
69 int BIO_free(OSSL_CORE_BIO *bio);
70 int BIO_vprintf(OSSL_CORE_BIO *bio, const char *format, va_list args);
295 functions take an B<OSSL_CORE_BIO> type rather than the standard B<BIO>
H A Dprovider-storemgmt.pod18 void *OSSL_FUNC_store_attach(void *provctx, OSSL_CORE_BIO *bio);
58 OSSL_CORE_BIO * bio);
/freebsd/crypto/openssl/providers/fips/
H A Dself_test.c178 static int verify_integrity(OSSL_CORE_BIO *bio, OSSL_FUNC_BIO_read_ex_fn read_ex_cb, in verify_integrity()
239 OSSL_CORE_BIO *bio_module = NULL, *bio_indicator = NULL; in SELF_TEST_post()

12