Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

shw_hmac.c File Reference

Detailed Description

This file contains implementations for use of the (internal) SHW HMAC software computation. It defines the usual three steps:

Definition in file shw_hmac.c.

#include "shw_driver.h"
#include "shw_hmac.h"
#include <asm/types.h>
#include <linux/byteorder/little_endian.h>

Go to the source code of this file.


#define INNER_HASH_CONSTANT   0x36
#define printk   printf


fsl_shw_return_t shw_hmac_final (shw_hmac_state_t *state, uint8_t *hmac, unsigned int hmac_len)
fsl_shw_return_t shw_hmac_init (shw_hmac_state_t *state, const uint8_t *key, unsigned int key_len)
fsl_shw_return_t shw_hmac_update (shw_hmac_state_t *state, const uint8_t *msg, unsigned int msg_len)

Generated by  Doxygen 1.6.0   Back to index