|
MAGMA
Cryptographic Library
|
#include "modes/mac.h"
Functions | |
| MagmaResult | magma_mac (const unsigned char keys[ITER_KEYS_COUNT][ITER_KEY_LEN], const size_t mac_size, const unsigned char *input, unsigned char *mac, const size_t length) |
| Processing data to produce a Message Authentication Code (MAC) using the specified keys. | |
| MagmaResult | calc_additional_keys (unsigned char K1_output[MAGMA_BLOCK_SIZE], unsigned char K2_output[MAGMA_BLOCK_SIZE], const unsigned char keys[ITER_KEYS_COUNT][ITER_KEY_LEN]) |
| Calculates additional keys K1 and K2 used in the MAC generation process. | |
| MagmaResult calc_additional_keys | ( | unsigned char | K1_output[MAGMA_BLOCK_SIZE], |
| unsigned char | K2_output[MAGMA_BLOCK_SIZE], | ||
| const unsigned char | keys[ITER_KEYS_COUNT][ITER_KEY_LEN] ) |
Calculates additional keys K1 and K2 used in the MAC generation process.
| K1_output | Pointer to the output buffer for K1. |
| K2_output | Pointer to the output buffer for K2. |
| keys | Expanded iteration keys. |
| MagmaResult magma_mac | ( | const unsigned char | keys[ITER_KEYS_COUNT][ITER_KEY_LEN], |
| const size_t | mac_size, | ||
| const unsigned char * | input, | ||
| unsigned char * | mac, | ||
| const size_t | length ) |
Processing data to produce a Message Authentication Code (MAC) using the specified keys.
| keys | Expanded iteration keys. |
| mac_size | Size of the MAC in bytes. |
| input | Pointer to the input data. |
| mac | Pointer to the output MAC. |
| length | Length of the input data in bytes. |