From c6a35dfd54ce509db91c4430b0207ac5c91b1bea Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 20 Jul 2016 09:38:40 +0300 Subject: [PATCH] [DOC] Padding is the standard 7816-4 format --- doc/transport.texi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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}. -- 2.44.0