sha3#

Defines

SHA3_KECCAK_SPONGE_WORDS#

For documentation, see brainhub/SHA3IUF

The hashes generated with SHA3_FLAGS_NONE corresponds to sha3_256() sha3_384() and sha3_512() in Python hashlib.

Typedefs

typedef struct sha3_context_ sha3_context#
typedef enum SHA3_RETURN sha3_return_t#

Enums

enum SHA3_FLAGS#

Values:

enumerator SHA3_FLAGS_NONE#
enumerator SHA3_FLAGS_KECCAK#
enum SHA3_RETURN#

Values:

enumerator SHA3_RETURN_OK#
enumerator SHA3_RETURN_BAD_PARAMS#

Functions

sha3_return_t sha3_Init(sha3_context *priv, unsigned bitSize)#
void sha3_Init256(sha3_context *priv)#
void sha3_Init384(sha3_context *priv)#
void sha3_Init512(sha3_context *priv)#
enum SHA3_FLAGS sha3_SetFlags(sha3_context *priv, enum SHA3_FLAGS)#
void sha3_Update(sha3_context *priv, void const *bufIn, size_t len)#
void const *sha3_Finalize(sha3_context *priv)#
sha3_return_t sha3_HashBuffer(unsigned bitSize, enum SHA3_FLAGS flags, const void *in, unsigned inBytes, void *out, unsigned outBytes)#
struct sha3_context_#

Public Members

uint64_t saved#
uint64_t s[SHA3_KECCAK_SPONGE_WORDS]#
uint8_t sb[SHA3_KECCAK_SPONGE_WORDS * 8]#
union sha3_context_::[anonymous] u#
unsigned byteIndex#
unsigned wordIndex#
unsigned capacityWords#