mirror of
https://github.com/logos-messaging/noise.git
synced 2026-01-06 16:13:09 +00:00
Fix authData comment
This commit is contained in:
parent
b5b487a2fa
commit
903cbf641c
@ -227,7 +227,7 @@ func (n *noise255ctx) Decrypt(authtext, ciphertext []byte) ([]byte, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (noise255ctx) authData(authtext, ciphertext []byte) []byte {
|
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)
|
authData := make([]byte, pad16len(len(authtext))+pad16len(len(ciphertext))+8+8)
|
||||||
copy(authData, authtext)
|
copy(authData, authtext)
|
||||||
offset := pad16len(len(authtext))
|
offset := pad16len(len(authtext))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user