Functions
aes-omac1.c File Reference
#include "includes.h"
#include "common.h"
#include "aes.h"
#include "aes_wrap.h"
Include dependency graph for aes-omac1.c:

Go to the source code of this file.

Functions

static void gf_mulx (u8 *pad)
int omac1_aes_128 (const u8 *key, const u8 *data, size_t data_len, u8 *mac)
int omac1_aes_128_vector (const u8 *key, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac)

Function Documentation

static void gf_mulx ( u8 *  pad) [static]

Definition at line 22 of file aes-omac1.c.

int omac1_aes_128 ( const u8 *  key,
const u8 *  data,
size_t  data_len,
u8 *  mac 
)

omac1_aes_128 - One-Key CBC MAC (OMAC1) hash with AES-128 (aka AES-CMAC) : 128-bit key for the hash operation : Data buffer for which a MAC is determined : Length of data buffer in bytes : Buffer for MAC (128 bits, i.e., 16 bytes) Returns: 0 on success, -1 on failure

This is a mode for using block cipher (AES in this case) for authentication. OMAC1 was standardized with the name CMAC by NIST in a Special Publication (SP) 800-38B.

Definition at line 121 of file aes-omac1.c.

int omac1_aes_128_vector ( const u8 *  key,
size_t  num_elem,
const u8 *  addr[],
const size_t *  len,
u8 *  mac 
)

omac1_aes_128_vector - One-Key CBC MAC (OMAC1) hash with AES-128 : 128-bit key for the hash operation : Number of elements in the data vector : Pointers to the data areas : Lengths of the data blocks : Buffer for MAC (128 bits, i.e., 16 bytes) Returns: 0 on success, -1 on failure

This is a mode for using block cipher (AES in this case) for authentication. OMAC1 was standardized with the name CMAC by NIST in a Special Publication (SP) 800-38B.

Definition at line 48 of file aes-omac1.c.



wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:34:37