From 3e809f4750528d88e32a9a4cafacdf6c8f99c26f Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Tue, 4 Apr 2017 21:26:48 +0200 Subject: [PATCH] fix comments --- common/crypto/auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/crypto/auth.go b/common/crypto/auth.go index 2107d64fd..e84fabf3d 100644 --- a/common/crypto/auth.go +++ b/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)