On Sun, Nov 06, 2011 at 01:45:43AM +0100, George Kadianakis wrote:
3.1. AUTHORIZE cell
The AUTHORIZE cell is a variable-sized cell.
The generic AUTHORIZE cell format is:
AuthMethod [1 octet] MethodFields [...] PadLen [2 octets] Padding ['PadLen' octets]
Why include PadLen and Padding? A variable-sized cell already says how big it is. So the client can pick a size for the variable-sized cell (the client has to anyway), and then any unused space is unused.
The AUTHORIZED cell format is:
'AuthMethod' [1 octet] 'PadLen' [2 octets] 'Padding' ['PadLen' octets]
Same here.
--Roger