소스 검색

fix comments

Darien Raymond 8 년 전
부모
커밋
3e809f4750
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      common/crypto/auth.go

+ 2 - 2
common/crypto/auth.go

@@ -127,13 +127,13 @@ func (v *AuthenticationReader) nextChunk(mask uint16) error {
 		return errInsufficientBuffer
 	}
 	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() {
 		return io.EOF
 	}
 	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)
 	plainChunk, err := v.auth.Open(cipherChunk[:0], cipherChunk)