Lines Matching refs:bio
108 BIO *bio, *b64; in Base64Encode() local
112 bio = BIO_new(BIO_s_mem()); in Base64Encode()
113 bio = BIO_push(b64, bio); in Base64Encode()
115 BIO_set_flags(bio, BIO_FLAGS_BASE64_NO_NL); //Ignore newlines - write everything in one line in Base64Encode()
116 BIO_write(bio, buffer, length); in Base64Encode()
117 BIO_flush(bio); in Base64Encode()
118 BIO_get_mem_ptr(bio, &bufferPtr); in Base64Encode()
120 BIO_free_all(bio); in Base64Encode()
136 BIO *bio, *b64; in Base64Decode() local
142 bio = BIO_new_mem_buf(b64message, -1); in Base64Decode()
144 bio = BIO_push(b64, bio); in Base64Decode()
146 BIO_set_flags(bio, BIO_FLAGS_BASE64_NO_NL); //Do not use newlines to flush buffer in Base64Decode()
147 *length = BIO_read(bio, *buffer, strlen(b64message)); in Base64Decode()
149 BIO_free_all(bio); in Base64Decode()
173 BIO* bio = BIO_new(BIO_s_mem()); in load_pubkey_from_base64() local
174 BIO_write(bio, key, key_len); in load_pubkey_from_base64()
175 EVP_PKEY *pkey = PEM_read_bio_PUBKEY(bio, NULL, NULL, NULL); in load_pubkey_from_base64()