]> Cypherpunks.ru repositories - govpn.git/commitdiff
[DOC] Padding is the standard 7816-4 format
authorSergey Matveev <stargrave@stargrave.org>
Wed, 20 Jul 2016 06:38:40 +0000 (09:38 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 20 Jul 2016 06:38:40 +0000 (09:38 +0300)
doc/transport.texi

index 1518d6f95fa59d02324409e9818234416827e5c0..812322528f03019d4b882dab6e925ebdd386afa4 100644 (file)
@@ -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}.