Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(13572)

Delta Between Two Patch Sets: Modules/_sha3/kcp/KeccakHash.c

Issue 16113: Add SHA-3 (Keccak) support
Left Patch Set: Created 3 years, 3 months ago
Right Patch Set: Created 3 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Modules/_sha3/kcp/align.h ('k') | Modules/_sha3/kcp/KeccakHash.h » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 /* 1 /*
2 Implementation by the Keccak, Keyak and Ketje Teams, namely, Guido Bertoni, 2 Implementation by the Keccak, Keyak and Ketje Teams, namely, Guido Bertoni,
3 Joan Daemen, Michaël Peeters, Gilles Van Assche and Ronny Van Keer, hereby 3 Joan Daemen, Michaël Peeters, Gilles Van Assche and Ronny Van Keer, hereby
4 denoted as "the implementer". 4 denoted as "the implementer".
5 5
6 For more information, feedback or questions, please refer to our websites: 6 For more information, feedback or questions, please refer to our websites:
7 http://keccak.noekeon.org/ 7 http://keccak.noekeon.org/
8 http://keyak.noekeon.org/ 8 http://keyak.noekeon.org/
9 http://ketje.noekeon.org/ 9 http://ketje.noekeon.org/
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 } 73 }
74 74
75 /* ---------------------------------------------------------------- */ 75 /* ---------------------------------------------------------------- */
76 76
77 HashReturn Keccak_HashSqueeze(Keccak_HashInstance *instance, BitSequence *data, DataLength databitlen) 77 HashReturn Keccak_HashSqueeze(Keccak_HashInstance *instance, BitSequence *data, DataLength databitlen)
78 { 78 {
79 if ((databitlen % 8) != 0) 79 if ((databitlen % 8) != 0)
80 return FAIL; 80 return FAIL;
81 return (HashReturn)KeccakWidth1600_SpongeSqueeze(&instance->sponge, data, da tabitlen/8); 81 return (HashReturn)KeccakWidth1600_SpongeSqueeze(&instance->sponge, data, da tabitlen/8);
82 } 82 }
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+