|
cwist
Modern C web framework with libttak runtime
|
mbedTLS TLS backend: EVP subset (HMAC digest tags, AES-256-CBC). More...
#include <stddef.h>

Go to the source code of this file.
Typedefs | |
| typedef struct cwist_mtls_evp_md | EVP_MD |
| typedef struct cwist_mtls_cipher | EVP_CIPHER |
| typedef struct cwist_mtls_cipher_ctx | EVP_CIPHER_CTX |
Functions | |
| const EVP_MD * | cwist_mtls_EVP_sha256 (void) |
| const EVP_CIPHER * | cwist_mtls_EVP_aes_256_cbc (void) |
| EVP_CIPHER_CTX * | cwist_mtls_EVP_CIPHER_CTX_new (void) |
| void | cwist_mtls_EVP_CIPHER_CTX_free (EVP_CIPHER_CTX *ctx) |
| int | cwist_mtls_EVP_EncryptInit_ex (EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, void *engine, const unsigned char *key, const unsigned char *iv) |
| int | cwist_mtls_EVP_EncryptUpdate (EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) |
| int | cwist_mtls_EVP_EncryptFinal_ex (EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) |
| int | cwist_mtls_EVP_DecryptInit_ex (EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, void *engine, const unsigned char *key, const unsigned char *iv) |
| int | cwist_mtls_EVP_DecryptUpdate (EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) |
| int | cwist_mtls_EVP_DecryptFinal_ex (EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl) |
mbedTLS TLS backend: EVP subset (HMAC digest tags, AES-256-CBC).
Part of the CWIST TLS backend seam; see shim/openssl/ssl.h for the design. Only what CWIST call sites use: EVP_sha256() as an HMAC digest selector and the AES-256-CBC cipher context API used by db_crypt and the (dormant under mbedTLS) session-ticket key callback.
Definition in file evp.h.
| #define EVP_aes_256_cbc cwist_mtls_EVP_aes_256_cbc |
| #define EVP_CIPHER_CTX_free cwist_mtls_EVP_CIPHER_CTX_free |
| #define EVP_CIPHER_CTX_new cwist_mtls_EVP_CIPHER_CTX_new |
| #define EVP_DecryptFinal_ex cwist_mtls_EVP_DecryptFinal_ex |
| #define EVP_DecryptInit_ex cwist_mtls_EVP_DecryptInit_ex |
| #define EVP_DecryptUpdate cwist_mtls_EVP_DecryptUpdate |
| #define EVP_EncryptFinal_ex cwist_mtls_EVP_EncryptFinal_ex |
| #define EVP_EncryptInit_ex cwist_mtls_EVP_EncryptInit_ex |
| #define EVP_EncryptUpdate cwist_mtls_EVP_EncryptUpdate |
| #define EVP_sha256 cwist_mtls_EVP_sha256 |
| typedef struct cwist_mtls_cipher EVP_CIPHER |
| typedef struct cwist_mtls_cipher_ctx EVP_CIPHER_CTX |
| const EVP_CIPHER * cwist_mtls_EVP_aes_256_cbc | ( | void | ) |
Definition at line 240 of file backend_mbedtls.c.
| void cwist_mtls_EVP_CIPHER_CTX_free | ( | EVP_CIPHER_CTX * | ctx | ) |
Definition at line 255 of file backend_mbedtls.c.
References cap, and cwist_free().
| EVP_CIPHER_CTX * cwist_mtls_EVP_CIPHER_CTX_new | ( | void | ) |
Definition at line 248 of file backend_mbedtls.c.
References cap, and cwist_malloc().
| int cwist_mtls_EVP_DecryptFinal_ex | ( | EVP_CIPHER_CTX * | ctx, |
| unsigned char * | out, | ||
| int * | outl | ||
| ) |
Definition at line 314 of file backend_mbedtls.c.
References cap, and cwist_mtls_EVP_EncryptFinal_ex().
| int cwist_mtls_EVP_DecryptInit_ex | ( | EVP_CIPHER_CTX * | ctx, |
| const EVP_CIPHER * | type, | ||
| void * | engine, | ||
| const unsigned char * | key, | ||
| const unsigned char * | iv | ||
| ) |
Definition at line 286 of file backend_mbedtls.c.
References cap.
| int cwist_mtls_EVP_DecryptUpdate | ( | EVP_CIPHER_CTX * | ctx, |
| unsigned char * | out, | ||
| int * | outl, | ||
| const unsigned char * | in, | ||
| int | inl | ||
| ) |
Definition at line 309 of file backend_mbedtls.c.
References cap, and cwist_mtls_EVP_EncryptUpdate().
| int cwist_mtls_EVP_EncryptFinal_ex | ( | EVP_CIPHER_CTX * | ctx, |
| unsigned char * | out, | ||
| int * | outl | ||
| ) |
Definition at line 301 of file backend_mbedtls.c.
References cap.
Referenced by cwist_mtls_EVP_DecryptFinal_ex().
| int cwist_mtls_EVP_EncryptInit_ex | ( | EVP_CIPHER_CTX * | ctx, |
| const EVP_CIPHER * | type, | ||
| void * | engine, | ||
| const unsigned char * | key, | ||
| const unsigned char * | iv | ||
| ) |
Definition at line 280 of file backend_mbedtls.c.
References cap.
| int cwist_mtls_EVP_EncryptUpdate | ( | EVP_CIPHER_CTX * | ctx, |
| unsigned char * | out, | ||
| int * | outl, | ||
| const unsigned char * | in, | ||
| int | inl | ||
| ) |
Definition at line 292 of file backend_mbedtls.c.
References cap.
Referenced by cwist_mtls_EVP_DecryptUpdate().
Definition at line 165 of file backend_mbedtls.c.