Fix: ssr broken (#895)
This commit is contained in:
parent
d7fb997d3b
commit
3a5f31d5a1
1 changed files with 2 additions and 2 deletions
|
@ -92,8 +92,8 @@ func (a *authAES128) Decode(b []byte) ([]byte, int, error) {
|
|||
break
|
||||
}
|
||||
|
||||
h = a.hmac(key, b[:bSize-4])
|
||||
if !bytes.Equal(h[:4], b[bSize-4:]) {
|
||||
h = a.hmac(key, b[:length-4])
|
||||
if !bytes.Equal(h[:4], b[length-4:length]) {
|
||||
return nil, 0, errAuthAES128IncorrectChecksum
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue