Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
e3e91a4d
Commit
e3e91a4d
authored
Feb 02, 2015
by
Juan Batiz-Benet
Browse files
p2p/crypto/secio: dont bother user with mac errs.
parent
46877f3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
crypto/secio/rw.go
View file @
e3e91a4d
...
...
@@ -192,7 +192,7 @@ func (r *etmReader) macCheckThenDecrypt(m []byte) (int, error) {
// check mac. if failed, return error.
if
!
hmac
.
Equal
(
macd
,
expected
)
{
log
.
Error
(
"MAC Invalid:"
,
expected
,
"!="
,
macd
)
log
.
Debug
(
"MAC Invalid:"
,
expected
,
"!="
,
macd
)
return
0
,
ErrMACInvalid
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment