webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Functions
cmac.c File Reference
#include <openssl/cmac.h>
#include <assert.h>
#include <string.h>
#include <openssl/aes.h>
#include <openssl/cipher.h>
#include <openssl/mem.h>

Classes

struct  cmac_ctx_st
 

Functions

int AES_CMAC (uint8_t out[16], const uint8_t *key, size_t key_len, const uint8_t *in, size_t in_len)
 
CMAC_CTXCMAC_CTX_new (void)
 
void CMAC_CTX_free (CMAC_CTX *ctx)
 
int CMAC_Init (CMAC_CTX *ctx, const void *key, size_t key_len, const EVP_CIPHER *cipher, ENGINE *engine)
 
int CMAC_Reset (CMAC_CTX *ctx)
 
int CMAC_Update (CMAC_CTX *ctx, const uint8_t *in, size_t in_len)
 
int CMAC_Final (CMAC_CTX *ctx, uint8_t *out, size_t *out_len)
 

Function Documentation

◆ AES_CMAC()

int AES_CMAC ( uint8_t  out[16],
const uint8_t key,
size_t  key_len,
const uint8_t in,
size_t  in_len 
)

◆ CMAC_CTX_free()

void CMAC_CTX_free ( CMAC_CTX ctx)

◆ CMAC_CTX_new()

CMAC_CTX* CMAC_CTX_new ( void  )

◆ CMAC_Final()

int CMAC_Final ( CMAC_CTX ctx,
uint8_t out,
size_t out_len 
)

◆ CMAC_Init()

int CMAC_Init ( CMAC_CTX ctx,
const void key,
size_t  key_len,
const EVP_CIPHER cipher,
ENGINE engine 
)

◆ CMAC_Reset()

int CMAC_Reset ( CMAC_CTX ctx)

◆ CMAC_Update()

int CMAC_Update ( CMAC_CTX ctx,
const uint8_t in,
size_t  in_len 
)