vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/sse2/poly1305_sse2.c in rbnacl-libsodium-1.0.8 vs vendor/libsodium/src/libsodium/crypto_onetimeauth/poly1305/sse2/poly1305_sse2.c in rbnacl-libsodium-1.0.9
- old
+ new
@@ -86,13 +86,12 @@
static POLY1305_NOINLINE void
poly1305_init_ext(poly1305_state_internal_t *st,
const unsigned char key[32], unsigned long long bytes)
{
uint32_t *R;
- uint128_t d[3],m0;
+ uint128_t d[3];
uint64_t r0,r1,r2;
- uint32_t rp0,rp1,rp2,rp3,rp4;
uint64_t rt0,rt1,rt2,st2,c;
uint64_t t0,t1;
unsigned long long i;
if (!bytes) bytes = ~(unsigned long long)0;
@@ -168,11 +167,11 @@
const xmmi MMASK = _mm_shuffle_epi32(_mm_cvtsi32_si128((1 << 26) - 1), _MM_SHUFFLE(1,0,1,0));
const xmmi FIVE = _mm_shuffle_epi32(_mm_cvtsi32_si128(5), _MM_SHUFFLE(1,0,1,0));
xmmi H0,H1,H2,H3,H4;
xmmi T0,T1,T2,T3,T4,T5,T6,T7,T8;
xmmi M0,M1,M2,M3,M4;
- xmmi M5,M6,M7,M8,M9;
+ xmmi M5,M6,M7,M8;
xmmi C1,C2;
xmmi R20,R21,R22,R23,R24,S21,S22,S23,S24;
xmmi R40,R41,R42,R43,R44,S41,S42,S43,S44;
if (st->flags & poly1305_final_shift8) HIBIT = _mm_srli_si128(HIBIT, 8);
@@ -567,10 +566,9 @@
static POLY1305_NOINLINE void
poly1305_finish_ext(poly1305_state_internal_t *st, const unsigned char *m,
unsigned long long leftover, unsigned char mac[16])
{
uint64_t h0,h1,h2;
- uint64_t t0,t1,c;
if (leftover) {
CRYPTO_ALIGN(16) unsigned char final[32] = {0};
poly1305_block_copy31(final, m, leftover);
if (leftover != 16) final[leftover] = 1;