Fix: ssr broken (#895)
This commit is contained in:
parent
0b7918de9c
commit
8b7c731fd6
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