pkg/cryptstate: use passed-in nonce in OCBEncrypt.

This commit is contained in:
Mikkel Krautz 2012-12-01 11:16:02 +01:00
parent 18e35caae3
commit eb64671d5a

View file

@ -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)