helpers.h 434 Bytes
Newer Older
lwc-tester committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/**
 * Helper functions
 * 
 * @file helpers.h
 * @author Antoon Purnal <antoon.purnal@esat.kuleuven.be>
 */

#ifndef HELPERS_H
#define HELPERS_H

#include "extra_api.h"


void stateCopy(unsigned char a[4][4], unsigned char b[4][4]);
void tweakeyCopy(unsigned char tweakey[TWEAKEY_BLOCKSIZE_RATIO][4][4], unsigned char input[TWEAKEY_BLOCKSIZE_RATIO][4][4]);
void stateToCharArray(unsigned char* array, unsigned char a[4][4]);

#endif