25 if (delimitedSuffix == 0)
39 if ((databitlen % 8) == 0)
45 unsigned char lastByte =
data[databitlen/8];
47 unsigned short delimitedLastBytes = (
unsigned short)((
unsigned short)lastByte | ((
unsigned short)instance->
delimitedSuffix << (databitlen % 8)));
48 if ((delimitedLastBytes & 0xFF00) == 0x0000) {
52 unsigned char oneByte[1];
53 oneByte[0] = delimitedLastBytes & 0xFF;
77 if ((databitlen % 8) != 0)
HashReturn Keccak_HashUpdate(Keccak_HashInstance *instance, const BitSequence *data, DataLength databitlen)
HashReturn Keccak_HashFinal(Keccak_HashInstance *instance, BitSequence *hashval)
HashReturn Keccak_HashSqueeze(Keccak_HashInstance *instance, BitSequence *data, DataLength databitlen)
HashReturn Keccak_HashInitialize(Keccak_HashInstance *instance, unsigned int rate, unsigned int capacity, unsigned int hashbitlen, unsigned char delimitedSuffix)
unsigned char BitSequence
unsigned char delimitedSuffix
unsigned int fixedOutputLength
KeccakWidth1600_SpongeInstance sponge