Skip to content

Commit

Permalink
Merge pull request #95 from formosa-crypto/fix/fips202_4x_DIRTY
Browse files Browse the repository at this point in the history
fips202_4x_DIRTY: t0 out of the loop
  • Loading branch information
tfaoliveira authored Oct 22, 2023
2 parents 900ceec + 7193761 commit be5fdff
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/common/keccak/common/fips202_4x_DIRTY.jinc
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ fn _shake128_absorb4x_34(reg ptr u256[25] s, reg ptr u8[34] m0 m1 m2 m3) -> reg
reg u16 t16;
reg u64 t64;

t0 = #set0_256();
for i = 0 to 25
{
t0 = #set0_256();
s[i] = t0;
}
{ s[i] = t0; }

for i = 0 to 4
{
Expand Down Expand Up @@ -62,11 +60,9 @@ fn _shake256_absorb4x_33(reg ptr u256[25] s, reg ptr u8[33] m0 m1 m2 m3) -> reg
reg u64 t64;
reg u8 t8;

t0 = #set0_256();
for i = 0 to 25
{
t0 = #set0_256();
s[i] = t0;
}
{ s[i] = t0; }

for i = 0 to 4
{
Expand Down

0 comments on commit be5fdff

Please sign in to comment.