permutation.c 759 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 "Ascon-reference.h"

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

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

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

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

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