mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
fix comments
This commit is contained in:
parent
2e5cb82790
commit
3e809f4750
@ -127,13 +127,13 @@ func (v *AuthenticationReader) nextChunk(mask uint16) error {
|
|||||||
return errInsufficientBuffer
|
return errInsufficientBuffer
|
||||||
}
|
}
|
||||||
if size > readerBufferSize-2 {
|
if size > readerBufferSize-2 {
|
||||||
return errors.New("Crypto:AuthenticationReader: Size too large: ", size)
|
return errors.New("Crypto|AuthenticationReader: Size too large: ", size)
|
||||||
}
|
}
|
||||||
if size == v.auth.Overhead() {
|
if size == v.auth.Overhead() {
|
||||||
return io.EOF
|
return io.EOF
|
||||||
}
|
}
|
||||||
if size < v.auth.Overhead() {
|
if size < v.auth.Overhead() {
|
||||||
return errors.New("Crypto:AuthenticationReader: invalid packet size:", size)
|
return errors.New("Crypto|AuthenticationReader: invalid packet size:", size)
|
||||||
}
|
}
|
||||||
cipherChunk := v.buffer.BytesRange(2, size+2)
|
cipherChunk := v.buffer.BytesRange(2, size+2)
|
||||||
plainChunk, err := v.auth.Open(cipherChunk[:0], cipherChunk)
|
plainChunk, err := v.auth.Open(cipherChunk[:0], cipherChunk)
|
||||||
|
Loading…
Reference in New Issue
Block a user