permutation.c 784 Bytes
Newer Older
lwc-tester committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
#include <stdio.h>
#include "isap.h"
#include "KeccakP-400-SnP.h"

void Permutation_Initialize(
	void *state
){
	KeccakP400_Initialize(state);
}

void Permutation_AddBytes(
	void *state,
	const unsigned char *data,
	unsigned int offset,
	unsigned int length
){
	KeccakP400_AddBytes(state,data,offset,length);
}

void Permutation_OverwriteBytes(
	void *state,
	const unsigned char *data,
	unsigned int offset,
	unsigned int length
){
	KeccakP400_OverwriteBytes(state,data,offset,length);
}

void Permutation_Permute_Nrounds(
	void *state,
	unsigned int nrounds
){
	KeccakP400_Permute_Nrounds(state,nrounds);
}

void Permutation_ExtractBytes(
	const void *state,
	unsigned char *data,
	unsigned int offset,
	unsigned int length
){
	KeccakP400_ExtractBytes(state,data,offset,length);
}