This commit is contained in:
Jay D Dee
2023-09-21 12:34:06 -04:00
parent d6b5750362
commit be88afc349
113 changed files with 3349 additions and 2920 deletions

31
compat/sha3_common.h Normal file
View File

@@ -0,0 +1,31 @@
/*
* file : sha3_common.h
* version : 1.0.208
* date : 14.12.2010
*
* Common declarations
*
* Cagdas Calik
* ccalik@metu.edu.tr
* Institute of Applied Mathematics, Middle East Technical University, Turkey.
*
*/
#include "sha3-defs.h"
#ifndef SHA3_COMMON_H
#define SHA3_COMMON_H
#ifdef __GNUC__
#define MYALIGN __attribute__((aligned(16)))
#else
#define MYALIGN __declspec(align(16))
#endif
#define M128(x) *((__m128i*)x)
//typedef unsigned char BitSequence;
//typedef unsigned long long DataLength;
//typedef enum {SUCCESS = 0, FAIL = 1, BAD_HASHBITLEN = 2} HashReturn;
#endif // SHA3_COMMON_H