Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/grumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorMikkel Krautz <mikkel@krautz.dk>2012-12-01 14:16:02 +0400
committerMikkel Krautz <mikkel@krautz.dk>2012-12-01 14:16:02 +0400
commiteb64671d5a5f93b793ba7e242c9838f2a68fc7a1 (patch)
tree31c8a783e475c7162b9b83aa59c120d38e588175 /pkg
parent18e35caae370fb42eb8c3e3cb441aeaae4f0fa5a (diff)
pkg/cryptstate: use passed-in nonce in OCBEncrypt.
Diffstat (limited to 'pkg')
-rw-r--r--pkg/cryptstate/cryptstate.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/cryptstate/cryptstate.go b/pkg/cryptstate/cryptstate.go
index d3c0d0f..8d6d998 100644
--- a/pkg/cryptstate/cryptstate.go
+++ b/pkg/cryptstate/cryptstate.go
@@ -270,7 +270,7 @@ func (cs *CryptState) OCBEncrypt(dst []byte, src []byte, nonce []byte, tag []byt
var pad [aes.BlockSize]byte
off := 0
- cs.cipher.Encrypt(delta[0:], cs.EncryptIV[0:])
+ cs.cipher.Encrypt(delta[0:], nonce[0:])
zeros(checksum[0:])
remain := len(src)