aes-omac1.c File Reference

One-key CBC MAC (OMAC1) hash with AES-128. More...

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

Go to the source code of this file.

Functions

int omac1_aes_128_vector (const u8 *key, size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac)
 One-Key CBC MAC (OMAC1) hash with AES-128.
int omac1_aes_128 (const u8 *key, const u8 *data, size_t data_len, u8 *mac)
 One-Key CBC MAC (OMAC1) hash with AES-128 (aka AES-CMAC).

Detailed Description

One-key CBC MAC (OMAC1) hash with AES-128.

Copyright
Copyright (c) 2003-2007, Jouni Malinen <j@w1.fi>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Alternatively, this software may be distributed under the terms of BSD license.

See README and COPYING for more details.

Definition in file aes-omac1.c.


Function Documentation

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

One-Key CBC MAC (OMAC1) hash with AES-128 (aka AES-CMAC).

Parameters:
key 128-bit key for the hash operation
data Data buffer for which a MAC is determined
data_len Length of data buffer in bytes
mac 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 123 of file aes-omac1.c.

Here is the call graph for this function:

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

One-Key CBC MAC (OMAC1) hash with AES-128.

Parameters:
key 128-bit key for the hash operation
num_elem Number of elements in the data vector
addr Pointers to the data areas
len Lengths of the data blocks
mac 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 49 of file aes-omac1.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Sat Nov 21 23:18:47 2009 for hostapd by  doxygen 1.6.1