[tor-dev] Proposal 189: AUTHORIZE and AUTHORIZED cells

Roger Dingledine arma at mit.edu
Tue Jun 12 10:35:51 UTC 2012


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



More information about the tor-dev mailing list