mirror of
https://git.busybox.net/busybox
synced 2026-02-15 22:16:09 +00:00
libbb/yescrypt: code shrink
function old new delta blockmix_xor 1177 702 -475 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
e62bfbcaed
commit
abe0b45cd7
1 changed files with 8 additions and 15 deletions
|
|
@ -421,26 +421,19 @@ static uint32_t blockmix_xor(const salsa20_blk_t *Bin1,
|
|||
|
||||
i = 0;
|
||||
r--;
|
||||
do {
|
||||
for (;;) {
|
||||
XOR_X(Bin1[i]);
|
||||
XOR_X(Bin2[i]);
|
||||
PWXFORM;
|
||||
WRITE_X(Bout[i]);
|
||||
|
||||
XOR_X(Bin1[i + 1]);
|
||||
XOR_X(Bin2[i + 1]);
|
||||
PWXFORM;
|
||||
|
||||
if (unlikely(i >= r))
|
||||
if (unlikely(i > r))
|
||||
break;
|
||||
WRITE_X(Bout[i]);
|
||||
i++;
|
||||
}
|
||||
|
||||
WRITE_X(Bout[i + 1]);
|
||||
|
||||
i += 2;
|
||||
} while (1);
|
||||
i++;
|
||||
|
||||
ctx->S0 = S0; ctx->S1 = S1; ctx->S2 = S2;
|
||||
ctx->S0 = S0;
|
||||
ctx->S1 = S1;
|
||||
ctx->S2 = S2;
|
||||
ctx->w = w;
|
||||
|
||||
SALSA20_2(Bout[i]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue