# /space/home/slher/rel/Beken/v6_4_5/macsw/ip/umac/src/hsu/hsu.h File Reference

Hardware Security Unit module definitions. More...

`#include "me_mic.h"`

Go to the source code of this file.

## Functions
void | hsu_init (void)
| Checks if HSU is available.
uint64_t | hsu_aes_cmac (uint32_t *key, int nb_elem, uint32_t addr[], int len[])
| Computes AES-CMAC on several vectors using HSU.
bool | hsu_michael_init (struct mic_calc *mic_calc, uint32_t *mic_key, uint32_t *aad)
| Initializes TKIP MIC computation using HSU.
bool | hsu_michael_calc (struct mic_calc *mic_calc, uint32_t data, uint32_t data_len)
| Continues TKIP MIC computation using HSU.
bool | hsu_michael_end (struct mic_calc *mic_calc)
| Ends TKIP MIC computation using HSU.
bool | hsu_ip_checksum (uint32_t addr, uint16_t len, uint16_t *checksum)
| Computes the IP checksum on the buffer provided.
bool | hsu_sha1 (int nb_elem, const uint8_t *addr[], const size_t *len, uint32_t *sha)
| Computes the SHA1 on the buffers provided.
bool | hsu_sha224 (int nb_elem, const uint8_t *addr[], const size_t *len, uint32_t *sha)
| Computes the SHA224 on the buffers provided.
bool | hsu_sha256 (int nb_elem, const uint8_t *addr[], const size_t *len, uint32_t *sha)
| Computes the SHA256 on the buffers provided.
bool | hsu_sha384 (int nb_elem, const uint8_t *addr[], const size_t *len, uint32_t *sha)
| Computes the SHA384 on the buffers provided.
bool | hsu_sha512 (int nb_elem, const uint8_t *addr[], const size_t *len, uint32_t *sha)
| Computes the SHA512 on the buffers provided.
bool | hsu_hmac_sha1 (const uint8_t key[], const size_t key_len, int nb_elem, const uint8_t *addr[], const size_t *len, uint32_t *mac)
| Computes the HMAC-SHA1 on the buffers provided.
bool | hsu_hmac_sha224 (const uint8_t key[], const size_t key_len, int nb_elem, const uint8_t *addr[], const size_t *len, uint32_t *mac)
| Computes the HMAC-SHA224 on the buffers provided.
bool | hsu_hmac_sha256 (const uint8_t key[], const size_t key_len, int nb_elem, const uint8_t *addr[], const size_t *len, uint32_t *mac)
| Computes the HMAC-SHA256 on the buffers provided.
bool | hsu_hmac_sha384 (const uint8_t key[], const size_t key_len, int nb_elem, const uint8_t *addr[], const size_t *len, uint32_t *mac)
| Computes the HMAC-SHA384 on the buffers provided.
bool | hsu_hmac_sha512 (const uint8_t key[], const size_t key_len, int nb_elem, const uint8_t *addr[], const size_t *len, uint32_t *mac)
| Computes the HMAC-SHA512 on the buffers provided.

## Detailed Description

Hardware Security Unit module definitions.

Copyright (C) RivieraWaves 2017-2019

Definition in file hsu.h.