- SHADOWSOCKS CLIENT SUPPORT CHACHA20 IETF POLY1305 PATCH
- SHADOWSOCKS CLIENT SUPPORT CHACHA20 IETF POLY1305 CODE
PORT_Memcpy +152,5 + PORT_SetError(SEC_ERROR_OUTPUT_LEN) > + memcpy(output + inputLen, tag, ctx->tagLen) > + Poly1305Do(tag, ad, adLen, output, inputLen, block) > + ChaCha20XOR(output, input, inputLen, ctx->key, nonce, 1)
SHADOWSOCKS CLIENT SUPPORT CHACHA20 IETF POLY1305 CODE
We have code elsewhere that uses intrinsics for this. We should be detecting gcc version (we have detection code for 4.8 already) and including this. > + # poly1305-donna-圆4-sse2-incremental-source.c requires _int128 support U32TO8_LE(&mac, (uint32_t)f2) f3 += (f2 > 32) Ī few things need to be fixed here, but I don't see many structural issues. is the asynchronous, non-blocking shadowsocks client. U32TO8_LE(&mac, (uint32_t)f1) f2 += (f1 > 32) NAME Net::Shadowsocks VERSION Version 0.8.3 SYNOPSIS DESCRIPTION Shadowsocks is a secure transport protocol based on SOCKS Protocol Version 5 (RFC 1928 ).Net::Shadowsocks is a Perl implementation of the shadowsocks (Chinese: ) protocol client and server. > + input = U8TO32_LITTLE(sigma + 12) Īvoids MSVC warnings about possible value truncation:
I changed tests/cipher/cipher.sh to check the exit status of pk11gcmtest. I fixed a pre-existing bug in pk11gcmtest.c, so that it actually exits with status 1 on test failure. Please see the review comments below for my proposed fixes. I removed the unrelated changes in secport.c and ssl3con.c.
SHADOWSOCKS CLIENT SUPPORT CHACHA20 IETF POLY1305 PATCH
When building Chromium locally with this patch while trying to enable some currently-disabled MSVC warnings, I ran across some minor issues.