cwist
Modern C web framework with libttak runtime
Loading...
Searching...
No Matches
hmac.h
Go to the documentation of this file.
1
9#ifndef CWIST_SHIM_OPENSSL_HMAC_H
10#define CWIST_SHIM_OPENSSL_HMAC_H
11
12#include <openssl/evp.h>
13#include <stddef.h>
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19typedef struct cwist_mtls_hmac_ctx HMAC_CTX;
20
21#define HMAC cwist_mtls_HMAC
22#define HMAC_CTX_new cwist_mtls_HMAC_CTX_new
23#define HMAC_CTX_free cwist_mtls_HMAC_CTX_free
24#define HMAC_Init_ex cwist_mtls_HMAC_Init_ex
25#define HMAC_Update cwist_mtls_HMAC_Update
26#define HMAC_Final cwist_mtls_HMAC_Final
27unsigned char *cwist_mtls_HMAC(const EVP_MD *md, const void *key, int key_len,
28 const unsigned char *msg, size_t msg_len, unsigned char *out,
29 unsigned int *out_len);
32int cwist_mtls_HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int key_len, const EVP_MD *md,
33 void *engine);
34int cwist_mtls_HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, size_t len);
35int cwist_mtls_HMAC_Final(HMAC_CTX *ctx, unsigned char *out, unsigned int *out_len);
36
37#ifdef __cplusplus
38}
39#endif
40
41#endif /* CWIST_SHIM_OPENSSL_HMAC_H */
mbedTLS TLS backend: EVP subset (HMAC digest tags, AES-256-CBC).
struct cwist_mtls_evp_md EVP_MD
Definition evp.h:19
void cwist_mtls_HMAC_CTX_free(HMAC_CTX *ctx)
struct cwist_mtls_hmac_ctx HMAC_CTX
Definition hmac.h:19
HMAC_CTX * cwist_mtls_HMAC_CTX_new(void)
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)
int cwist_mtls_HMAC_Final(HMAC_CTX *ctx, unsigned char *out, unsigned int *out_len)
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)
size_t cap
Definition otel.c:56