mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-19 21:59:59 -08:00
pkg/cryptstate: use passed-in nonce in OCBEncrypt.
This commit is contained in:
parent
18e35caae3
commit
eb64671d5a
1 changed files with 1 additions and 1 deletions
|
|
@ -270,7 +270,7 @@ func (cs *CryptState) OCBEncrypt(dst []byte, src []byte, nonce []byte, tag []byt
|
||||||
var pad [aes.BlockSize]byte
|
var pad [aes.BlockSize]byte
|
||||||
off := 0
|
off := 0
|
||||||
|
|
||||||
cs.cipher.Encrypt(delta[0:], cs.EncryptIV[0:])
|
cs.cipher.Encrypt(delta[0:], nonce[0:])
|
||||||
zeros(checksum[0:])
|
zeros(checksum[0:])
|
||||||
|
|
||||||
remain := len(src)
|
remain := len(src)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue