permutation.h 505 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
#ifndef ISAP_PERMUTATION_H
#define ISAP_PERMUTATION_H

void Permutation_Initialize(
	const void *state
);

void Permutation_AddBytes(
	void *state,
	const unsigned char *data,
	size_t offset,
	size_t length
);

void Permutation_OverwriteBytes(
	void *state,
	const unsigned char *data,
	size_t offset,
	size_t length
);

void Permutation_Permute_Nrounds(
	void *state,
	size_t nrounds
);

void Permutation_ExtractBytes(
	const void *state,
	unsigned char *data,
	size_t offset,
	size_t length
);

#endif