X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=sha3-api.h;fp=sha3-api.h;h=179ca78c0c5f20691417d241d9865ba0f9033d9d;hp=0000000000000000000000000000000000000000;hb=3caccd2034e682222162e24c256d20bf65d7c649;hpb=6718048fd9038c98523eae722545bb0279e0bc21 diff --git a/sha3-api.h b/sha3-api.h new file mode 100644 index 0000000..179ca78 --- /dev/null +++ b/sha3-api.h @@ -0,0 +1,24 @@ +/* sha3-api.h */ + +/** + * \file sha3-api.h + * \author Daniel Otte + * \email daniel.otte@rub.de + * \date 2009-01-06 + * \license GPLv3 or later + * + */ +/* + This file implements algortihm independent data types of the NIST API for + SHA3 candidates as described in: + http://csrc.nist.gov/groups/ST/hash/documents/SHA3-C-API.pdf + . +*/ + +#ifndef SHA3_API_H_ +#define SHA3_API_H_ +typedef unsigned char BitSequence; +typedef unsigned long long DataLength; +typedef enum { SUCCESS = 0, FAIL = 1, BAD_HASHBITLEN = 2 } HashReturn; + +#endif /* SHA3_API_H_ */