From 903cbf641c31d50507712dd8c0f8e785a64138ca Mon Sep 17 00:00:00 2001 From: Jonathan Rudenberg Date: Thu, 3 Jul 2014 21:28:18 -0700 Subject: [PATCH] Fix authData comment --- box/box.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/box/box.go b/box/box.go index d5b76a7..6b09bf1 100644 --- a/box/box.go +++ b/box/box.go @@ -227,7 +227,7 @@ func (n *noise255ctx) Decrypt(authtext, ciphertext []byte) ([]byte, error) { } func (noise255ctx) authData(authtext, ciphertext []byte) []byte { - // PAD16(authtext) || PAD16(plaintext) || (uint64)len(authtext) || (uint64)len(plaintext) + // PAD16(authtext) || PAD16(ciphertext) || (uint64)len(authtext) || (uint64)len(ciphertext) authData := make([]byte, pad16len(len(authtext))+pad16len(len(ciphertext))+8+8) copy(authData, authtext) offset := pad16len(len(authtext))