Commit Graph

144 Commits (d1deebb6a92a8099c76c0bc507382586a6a7c4c9)

Author SHA1 Message Date
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
Darien Raymond 66ed1bab2a
simplify BytesGenerator
7 years ago
Darien Raymond 9d7f43a299
fix lint errors
7 years ago
Darien Raymond 4b45174650
fix handling of empty buffer
7 years ago
Shelikhoo c542c043f3
Merge branch 'master' of github.com:v2ray/v2ray-core into domainsocket
7 years ago
Darien Raymond 9f198d7e3d
fix lint errors
7 years ago
Darien Raymond 27ccc9d726
comments
7 years ago
Darien Raymond 7bafd7a1ab
migrate int to int32
7 years ago
Darien Raymond c5bd23105e
change uint32 to int32
7 years ago
Darien Raymond 81a147e540
Merge branch 'master' of https://github.com/v2ray/v2ray-core
7 years ago
Darien Raymond 08dab81eb2
migrate int to int32
7 years ago
wuxiangzhou2010 5a08411ee2 fix typo
7 years ago
Darien Raymond 4de3f1adc1
change ReadFullFrom to take int32 size
7 years ago
Darien Raymond 5af3580bcf
correct magic number
7 years ago
Darien Raymond 3d919a6a93
optimize auth reader
7 years ago
Darien Raymond 8d0a74b3fa
refine auth writer
7 years ago
Darien Raymond fc7da93d06
less cap
7 years ago
Darien Raymond 000e0804e8
fix buffer recycling
7 years ago