mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-19 21:59:59 -08:00
Fix a few typos in pkg/cryptstate.
Thanks to @GEverding for mentioning this in mumble-voip/grumble#9
This commit is contained in:
parent
defccdcdf9
commit
cac5952847
1 changed files with 2 additions and 2 deletions
|
|
@ -194,7 +194,7 @@ func (cs *CryptState) Decrypt(dst, src []byte) error {
|
|||
return errors.New("cryptstate: no matching ivbyte")
|
||||
}
|
||||
|
||||
if cs.decryptHistory[cs.DecryptIV[0]] == cs.DecryptIV[0] {
|
||||
if cs.decryptHistory[cs.DecryptIV[0]] == cs.DecryptIV[1] {
|
||||
cs.DecryptIV = saveiv
|
||||
}
|
||||
}
|
||||
|
|
@ -205,7 +205,7 @@ func (cs *CryptState) Decrypt(dst, src []byte) error {
|
|||
return errors.New("cryptstate: tag mismatch")
|
||||
}
|
||||
|
||||
cs.decryptHistory[cs.DecryptIV[0]] = cs.DecryptIV[0]
|
||||
cs.decryptHistory[cs.DecryptIV[0]] = cs.DecryptIV[1]
|
||||
|
||||
if restore {
|
||||
cs.DecryptIV = saveiv
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue