X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=doc%2Ftransport.texi;h=812322528f03019d4b882dab6e925ebdd386afa4;hb=c6a35dfd54ce509db91c4430b0207ac5c91b1bea;hp=1518d6f95fa59d02324409e9818234416827e5c0;hpb=ccbb8308bab665a751487f37fa6afc0765a2912c;p=govpn.git 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}.