webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
#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_CTX * | CMAC_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) |
int AES_CMAC | ( | uint8_t | out[16], |
const uint8_t * | key, | ||
size_t | key_len, | ||
const uint8_t * | in, | ||
size_t | in_len | ||
) |
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 | ) |