Lines Matching refs:instance
21 HashReturn Keccak_HashInitialize(Keccak_HashInstance *instance, unsigned int rate, unsigned int cap… in Keccak_HashInitialize() argument
27 result = (HashReturn)KeccakWidth1600_SpongeInitialize(&instance->sponge, rate, capacity); in Keccak_HashInitialize()
30 instance->fixedOutputLength = hashbitlen; in Keccak_HashInitialize()
31 instance->delimitedSuffix = delimitedSuffix; in Keccak_HashInitialize()
37 HashReturn Keccak_HashUpdate(Keccak_HashInstance *instance, const BitSequence *data, DataLength dat… in Keccak_HashUpdate() argument
40 return (HashReturn)KeccakWidth1600_SpongeAbsorb(&instance->sponge, data, databitlen/8); in Keccak_HashUpdate()
42 … HashReturn ret = (HashReturn)KeccakWidth1600_SpongeAbsorb(&instance->sponge, data, databitlen/8); in Keccak_HashUpdate()
47 …astBytes = (unsigned short)((unsigned short)lastByte | ((unsigned short)instance->delimitedSuffix … in Keccak_HashUpdate()
49 instance->delimitedSuffix = delimitedLastBytes & 0xFF; in Keccak_HashUpdate()
54 ret = (HashReturn)KeccakWidth1600_SpongeAbsorb(&instance->sponge, oneByte, 1); in Keccak_HashUpdate()
55 instance->delimitedSuffix = (delimitedLastBytes >> 8) & 0xFF; in Keccak_HashUpdate()
64 HashReturn Keccak_HashFinal(Keccak_HashInstance *instance, BitSequence *hashval) in Keccak_HashFinal() argument
66 …urn ret = (HashReturn)KeccakWidth1600_SpongeAbsorbLastFewBits(&instance->sponge, instance->delimit… in Keccak_HashFinal()
68 …return (HashReturn)KeccakWidth1600_SpongeSqueeze(&instance->sponge, hashval, instance->fixedOutput… in Keccak_HashFinal()
75 HashReturn Keccak_HashSqueeze(Keccak_HashInstance *instance, BitSequence *data, DataLength databitl… in Keccak_HashSqueeze() argument
79 return (HashReturn)KeccakWidth1600_SpongeSqueeze(&instance->sponge, data, databitlen/8); in Keccak_HashSqueeze()