sycon.h 516 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

#ifndef SYCON_H
#define SYCON_H

#include<math.h>
#include<stdlib.h>
#include<stdint.h>

#define STATEBYTES		40 //SIZE of state in bytes
#define NUMROUNDS		14 //Number of Rounds

typedef unsigned long long u64;

unsigned char rotl8 ( const unsigned char x, const unsigned char y, const unsigned char shift );

void sycon_perm( unsigned char *input );

void print_sycon_state( const unsigned char *state );

void sycon_perm_ALLZERO ( unsigned char *state );

void sycon_perm_ALLONE ( unsigned char *state );

#endif