Home
last modified time | relevance | path

Searched refs:CMAC_CTX (Results 1 – 4 of 4) sorted by relevance

/openbsd/src/lib/libcrypto/cmac/
Dcmac.h65 typedef struct CMAC_CTX_st CMAC_CTX; typedef
67 CMAC_CTX *CMAC_CTX_new(void);
68 void CMAC_CTX_cleanup(CMAC_CTX *ctx);
69 void CMAC_CTX_free(CMAC_CTX *ctx);
70 EVP_CIPHER_CTX *CMAC_CTX_get0_cipher_ctx(CMAC_CTX *ctx);
71 int CMAC_CTX_copy(CMAC_CTX *out, const CMAC_CTX *in);
73 int CMAC_Init(CMAC_CTX *ctx, const void *key, size_t keylen,
75 int CMAC_Update(CMAC_CTX *ctx, const void *data, size_t dlen);
76 int CMAC_Final(CMAC_CTX *ctx, unsigned char *out, size_t *poutlen);
Dcmac.c110 CMAC_CTX *
113 CMAC_CTX *ctx; in CMAC_CTX_new()
115 if ((ctx = calloc(1, sizeof(CMAC_CTX))) == NULL) in CMAC_CTX_new()
132 CMAC_CTX_cleanup(CMAC_CTX *ctx) in CMAC_CTX_cleanup()
144 CMAC_CTX_get0_cipher_ctx(CMAC_CTX *ctx) in CMAC_CTX_get0_cipher_ctx()
151 CMAC_CTX_free(CMAC_CTX *ctx) in CMAC_CTX_free()
158 freezero(ctx, sizeof(CMAC_CTX)); in CMAC_CTX_free()
163 CMAC_CTX_copy(CMAC_CTX *out, const CMAC_CTX *in) in CMAC_CTX_copy()
182 CMAC_Init(CMAC_CTX *ctx, const void *key, size_t keylen, in CMAC_Init()
253 CMAC_Update(CMAC_CTX *ctx, const void *in, size_t dlen) in CMAC_Update()
[all …]
Dcm_pmeth.c95 CMAC_CTX *cmkey; in pkey_cmac_keygen()
140 CMAC_CTX *cmctx = ctx->data; in pkey_cmac_ctrl()
/openbsd/src/lib/libcrypto/evp/
Dp_lib.c578 CMAC_CTX *cmctx = NULL; in EVP_PKEY_new_CMAC_key()