From: Sergey Matveev Date: Wed, 20 Jul 2016 06:38:40 +0000 (+0300) Subject: [DOC] Padding is the standard 7816-4 format X-Git-Tag: 6.0^2~16 X-Git-Url: http://www.git.cypherpunks.ru/?p=govpn.git;a=commitdiff_plain;h=c6a35dfd54ce509db91c4430b0207ac5c91b1bea [DOC] Padding is the standard 7816-4 format --- diff --git a/doc/transport.texi b/doc/transport.texi index 1518d6f..8123225 100644 --- a/doc/transport.texi +++ b/doc/transport.texi @@ -25,8 +25,9 @@ MAC_KEY = 256bit(ENCRYPT(KEY, 0)) Salsa20's output is ignored and only remaining is XORed with ther data, encrypting it. -@code{DATA} is padded with @code{PAD} (0x80 byte). Optional @code{ZEROS} -may follow, to fill up packet to conceal payload packet length. +@code{DATA} is padded using ISO/IEC 7816-4 format (@code{PAD} (0x80 +byte) with optional @code{ZEROS} following), to fill up packet to +conceal payload packet length. @code{AUTH} is Poly1305 authentication function. First 256 bits of Salsa20's output are used as a one-time key for @code{AUTH}.