Files
shadowsocks-libev/tests
Max Lv d91ef14f76 Add allocation-free C++ stream cipher codecs
src/crypto/stream.hpp implements the legacy stream methods this build
supports (AES CFB/CTR, Camellia CFB, Salsa20, ChaCha20, ChaCha20-IETF)
as value types. The AES and Camellia contexts are held by value through
Mbed TLS's block-cipher APIs instead of an allocated
mbedtls_cipher_context_t, and the libsodium ciphers track their
keystream position, finishing partial 64-byte blocks from a stack block
instead of the padding copies stream.cpp makes.

test_crypto_stream_cpp runs TCP streams (with fragments that split
keystream blocks) and UDP packets between the C and C++
implementations in both directions for all twelve methods and checks
IV replay; alloc_steady_crypto_stream requires zero allocations for new
connections and packets.
2026-10-14 22:53:07 +08:00
..
2018-06-09 15:54:08 +09:00
2018-06-09 15:54:08 +09:00
2018-06-09 15:54:08 +09:00
2018-06-09 15:54:08 +09:00
2018-06-09 15:54:08 +09:00
2026-08-19 18:15:35 +08:00