Lines Matching full:bio

64 BIO_f_md, BIO_set_md, BIO_get_md, BIO_get_md_ctx \- message digest BIO filter
68 \& #include <openssl/bio.h>
72 \& int BIO_set_md(BIO *b, EVP_MD *md);
73 \& int BIO_get_md(BIO *b, EVP_MD **mdp);
74 \& int BIO_get_md_ctx(BIO *b, EVP_MD_CTX **mdcp);
78 \&\fBBIO_f_md()\fR returns the message digest BIO method. This is a filter
79 BIO that digests any data passed through it. It is a BIO wrapper
83 Any data written or read through a digest BIO using \fBBIO_read_ex()\fR and
90 \&\fBBIO_reset()\fR reinitialises a digest BIO.
92 \&\fBBIO_set_md()\fR sets the message digest of BIO \fBb\fR to \fBmd\fR: this
93 must be called to initialize a digest BIO before any data is
111 After the digest has been retrieved from a digest BIO it must be
117 a buffering BIO.
119 Calling \fBBIO_get_md_ctx()\fR will return the context and initialize the BIO
124 \&\fBBIO_f_md()\fR returns the digest BIO method.
130 The following example creates a BIO chain containing an SHA1 and MD5
131 digest BIO and passes the string "Hello World" through it. Error
135 \& BIO *bio, *mdtmp;
138 \& bio = BIO_new(BIO_s_null());
142 \& * For BIO_push() we want to append the sink BIO and keep a note of
145 \& bio = BIO_push(mdtmp, bio);
148 \& bio = BIO_push(mdtmp, bio);
150 \& BIO_write(bio, message, strlen(message));
156 \& BIO *bio, *mdtmp;
160 \& bio = BIO_new_file(file, "rb");
163 \& bio = BIO_push(mdtmp, bio);
166 \& bio = BIO_push(mdtmp, bio);
168 \& rdlen = BIO_read(bio, buf, sizeof(buf));
173 This next example retrieves the message digests from a BIO chain and
177 \& BIO *mdtmp;
182 \& mdtmp = bio; /* Assume bio has previously been set up */
197 \& BIO_free_all(bio);
203 and \fBBIO_puts()\fR should be passed to the next BIO in the chain and digest