Commit Graph

161 Commits (dfeaef75e7cc0224ced70dda9a1fc4c7987602f6)

Author SHA1 Message Date
RPRX e425876afe
Fix totalSize
4 years ago
Roger Shimizu 90af5f19ba
Apply Debian's patch to upstream
4 years ago
Darien Raymond 95ed5a5ff8
comments
6 years ago
Darien Raymond 5e6d0f7c71
fix test break
6 years ago
Darien Raymond 98950d5ada
remove dep of assert lib
6 years ago
Darien Raymond bdd71a44b4
remove dep on assert lib
6 years ago
Darien Raymond d26700a2fe
remove common/compare package
6 years ago
Darien Raymond 5c4e33f759
rewrite SliceBySize
6 years ago
Darien Raymond bcd5d026fe
rewrite SplitFirst
6 years ago
Darien Raymond cb7646f682
remove unnecessary err object from SplitBytes
6 years ago
Darien Raymond 842a089dad
refactor multibuffer
6 years ago
Darien Raymond 0f324a613e
remove MultiBuffer.Release
6 years ago
Darien Raymond 27772a75a7
refactor MultiBuffer append
6 years ago
Darien Raymond 48cac1733f
remove NewMultiBufferCap
6 years ago
Darien Raymond a01fdc29a6
remove NewMultiBufferValue
6 years ago
Darien Raymond 151f316c32
remove unnecessary buf allocation
6 years ago
Darien Raymond 6c7dcc35ab
remove buffer.WriteBytes
6 years ago
Darien Raymond 3f3d00298a
share rand reader across auth readers
6 years ago
Darien Raymond f7b96507f9
simplify buffer extension
6 years ago
Darien Raymond 35ccc3a49c
cleanup unnecessary method in serial.
6 years ago
Darien Raymond 815c7f09ba
migrate to std lib
6 years ago
Darien Raymond 58e2ed3381
remove closure on ReadFullFrom
6 years ago
Darien Raymond 9f48a6d017
enable global padding for aead by default
6 years ago
Darien Raymond 091fa6ad23
use new errorgen
6 years ago
Darien Raymond d55fbd7f8d
simplify error creation
6 years ago
Darien Raymond 81c9968188
simplify crypto related code
6 years ago
Darien Raymond 60ee80ca1b
don't write empty payload
6 years ago
Darien Raymond 475ffc8196
supress warning on ecryption packets
6 years ago
Darien Raymond b4f3106ad6
check msg size in writepacket
6 years ago
Darien Raymond 3df32aabbc
check empty payload
6 years ago
Darien Raymond 128ec95218
merge stread reader from mux to crypto
6 years ago
Darien Raymond 2e11653694
remove BufferedReader.Direct
6 years ago
Darien Raymond b769e0cc5f
only create bufferedreader when necessary
6 years ago
Darien Raymond 2594f7027a
remove ToNetBuffers
6 years ago
Darien Raymond fdb3a7b57d
remove use of buf.NewSize()
6 years ago
Darien Raymond 6a06908456
optimize encryption read/write operations
6 years ago
Darien Raymond 206f52affc
refine buffer interface
6 years ago
Darien Raymond d615adab36
optimize padding reading
6 years ago
Darien Raymond 7a4b0fff07
ensure everything are written
6 years ago
Darien Raymond 5e25741742
update tests
6 years ago
Darien Raymond 7efa7ee632
prepare to remove constructor of AuthenticationReader
6 years ago
Darien Raymond 81c9743ce0
fix auth test
6 years ago
Darien Raymond 8a879deac1
max padding len as variable
6 years ago
Darien Raymond 69774c99dc
fix padding value
6 years ago
Darien Raymond f54a8735ab
global padding in vmess protocol
6 years ago
Darien Raymond 0d94d25688
prototype of mtproto proxy
6 years ago
Darien Raymond 68da956fc4
re-generate code
7 years ago
Darien Raymond 148a7d064d
simplify buf.BufferedReader
7 years ago
Darien Raymond 3997d13b97
rename Slice and Slice from to Resize and Advance
7 years ago
Darien Raymond 1425fd2ba9
remove Buffer.Append method
7 years ago