|
cwist
Modern C web framework with libttak runtime
|
mbedTLS TLS backend: HMAC subset (HMAC-SHA256, one-shot + streaming). More...


Go to the source code of this file.
Typedefs | |
| typedef struct cwist_mtls_hmac_ctx | HMAC_CTX |
Functions | |
| unsigned char * | cwist_mtls_HMAC (const EVP_MD *md, const void *key, int key_len, const unsigned char *msg, size_t msg_len, unsigned char *out, unsigned int *out_len) |
| HMAC_CTX * | cwist_mtls_HMAC_CTX_new (void) |
| void | cwist_mtls_HMAC_CTX_free (HMAC_CTX *ctx) |
| int | cwist_mtls_HMAC_Init_ex (HMAC_CTX *ctx, const void *key, int key_len, const EVP_MD *md, void *engine) |
| int | cwist_mtls_HMAC_Update (HMAC_CTX *ctx, const unsigned char *data, size_t len) |
| int | cwist_mtls_HMAC_Final (HMAC_CTX *ctx, unsigned char *out, unsigned int *out_len) |
mbedTLS TLS backend: HMAC subset (HMAC-SHA256, one-shot + streaming).
Part of the CWIST TLS backend seam; see shim/openssl/ssl.h for the design. Backs signed session cookies (session.c), sequenced-chunk authentication (seq_auth.c) and JWT HS256.
Definition in file hmac.h.
| #define HMAC cwist_mtls_HMAC |
| #define HMAC_CTX_free cwist_mtls_HMAC_CTX_free |
| #define HMAC_CTX_new cwist_mtls_HMAC_CTX_new |
| #define HMAC_Final cwist_mtls_HMAC_Final |
| #define HMAC_Init_ex cwist_mtls_HMAC_Init_ex |
| #define HMAC_Update cwist_mtls_HMAC_Update |
| unsigned char * cwist_mtls_HMAC | ( | const EVP_MD * | md, |
| const void * | key, | ||
| int | key_len, | ||
| const unsigned char * | msg, | ||
| size_t | msg_len, | ||
| unsigned char * | out, | ||
| unsigned int * | out_len | ||
| ) |
Definition at line 169 of file backend_mbedtls.c.
References cap.
Definition at line 196 of file backend_mbedtls.c.
References cap, and cwist_free().
Definition at line 189 of file backend_mbedtls.c.
References cap, and cwist_malloc().
Definition at line 224 of file backend_mbedtls.c.
References cap.
| int cwist_mtls_HMAC_Init_ex | ( | HMAC_CTX * | ctx, |
| const void * | key, | ||
| int | key_len, | ||
| const EVP_MD * | md, | ||
| void * | engine | ||
| ) |
Definition at line 202 of file backend_mbedtls.c.
References cap.