Commit Graph
20 Commits
Author SHA1 Message Date
Max LvandClaude Opus 4.6 31731baa44 Reduce memory copies in crypto encrypt/decrypt paths
Add bswap_data() to swap buffer pointers instead of copying, replace
brealloc+memcpy with pointer swaps in aead and stream codecs, add
in-place fast paths for non-Salsa20 stream ciphers, and use index
tracking instead of memmove in aead_decrypt chunked reassembly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 08:53:28 +08:00
Lu jicongandZxl hhyccc 9afa3cacf9 Fix in 'mbedtls 3.6.0 ver' compilation failure issue
Fix mbedtls 3.6 compatibility

Co-authored-by: Zxl hhyccc <zxlhhy@gmail.com>
Signed-off-by: Lu jicong <jiconglu58@gmail.com>
2025-01-20 11:11:47 +08:00
babarosaM33 88c4d2aaab crypto: lower bloom filter error rate
before patch:
full bloom filter error rate before reset 1-(1-1e-6)^5e5=1-0.606=0.394

after patch:
1-(1-1e-10)^5e5=1-0.99995=5e-5
2020-01-29 16:31:14 +08:00
Max Lv 59417b9779 Revert "Specify the alignment of all structs"
This reverts commit d0285d6b4f.
2019-07-01 14:08:28 +08:00
Max Lv d0285d6b4f Specify the alignment of all structs 2019-07-01 13:14:50 +08:00
Chinsyo 7bd382042b bump copyright year 2019-03-21 12:39:29 +08:00
edsgerlin 761e66a969 Implement AES256-GCM with precomputation. 2018-09-12 02:14:11 +09:00
Max Lv dd5e954ab4 Clean up 2018-09-02 17:21:23 -07:00
Linus Yang 2ed8791dab Re-add support for MinGW 2018-03-08 17:26:11 +08:00
Max Lv 85a64ae836 Bump version 2018-01-15 17:25:03 -08:00
星野ハジメ cc1bb4cf62 format with .uncrustify.cfg (#1759)
* format with .uncrustify.cfg

format with .uncrustify.cfg

* format with .uncrustify.cfg

* format with .uncrustify.cfg exclude json.* base64.* uthash.h

* format with .uncrustify.cfg exclude json.* base64.* uthash.h
2017-10-30 21:28:53 +08:00
Max Lv 830679e5a4 Refine the parameters of bloom filter 2017-02-20 16:22:46 +08:00
Max Lv 98a4ff0639 Make parameters of bloom filter be compiler-time constants 2017-02-20 16:08:17 +08:00
Max Lv b655fb2b8f Replace nonce cache with a ping-pong bloom filter (#1282)
* Add Ping-Pong bloom filter

* Refine bloom filter insertion

* Reduce the error rate to 0.00001

* Avoid alignment issue in murmurhash2

* Fix a memory leak

* Fix build on non-GPU targets

* Detect get_current_dir_name in configure

* Update README.md

* Remove redudant bfree()

* Reduce the memory usage for local client

* Fix #1275

* Refine #1275

* Use IP when bypassing SNI domains

* Also apply replay detector on UDP traffic

* Update deb build script

Now build script is able to auto detect system and choose libraries
necessary to build.

Also update the README accordingly.

* Update build script to enable jessie/stretch etc

Also include a few cleanup that simplified pkg installation from
backports repository.
2017-02-20 10:29:32 +08:00
Max Lv 8a34b3ea0b Rename DEBUG to SS_DEBUG 2017-02-13 13:16:57 +08:00
Max Lv 6c62647a66 Add session key following SIP007 2017-02-12 16:34:42 +08:00
Max Lv ef0402eb10 Add --key option to set key directly (#1207) 2017-02-06 17:02:04 +08:00
Max Lv e18f71b03f Add Argon2i password hashing for AEAD 2017-01-29 17:41:39 +08:00
Max Lv 28e07cc08a Clean up 2017-01-29 10:16:17 +08:00
Max Lv 4ebe5aeb12 Add SIP004 (AEAD) support 2017-01-29 10:10:44 +08:00