Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
BIO_f_cipher, BIO_set_cipher, BIO_get_cipher_status, BIO_get_cipher_ctx — cipher BIO filterSYNOPSIS
#include <openssl/bio.h>#include <openssl/evp.h>
BIO_f_cipher(void);
BIO_set_cipher(BIO *b, const EVP_CIPHER *cipher, unsigned char *key, unsigned char *iv, int enc);
BIO_get_cipher_status(BIO *b);
BIO_get_cipher_ctx(BIO *b, EVP_CIPHER_CTX **pctx);
DESCRIPTION
BIO_f_cipher() returns the cipher BIO method. This is a filter BIO that encrypts any data written through it, and decrypts any data read from it. It is a BIO wrapper for the cipher routines EVP_CipherInit(3), EVP_CipherUpdate(3), and EVP_CipherFinal(3).
cmd constant |
corresponding macro |
BIO_C_GET_CIPHER_CTX | BIO_get_cipher_ctx() |
BIO_C_GET_CIPHER_STATUS | BIO_get_cipher_status() |
BIO_CTRL_FLUSH | BIO_flush(3) |
BIO_CTRL_PENDING | BIO_pending(3) |
BIO_CTRL_RESET | BIO_reset(3) |
BIO_CTRL_WPENDING | BIO_wpending(3) |