rapier wrote:> In the crypt function is there ever a situation in which the aadlen
> would not be 4?
A lazy grep says yes:
$ git grep 'aadlen ='
packet.c: u_int authlen = 0, aadlen = 0;
packet.c: aadlen = (mac && mac->enabled && mac->etm)
|| authlen ? 4 : 0;
packet.c: u_int maclen, aadlen = 0, authlen = 0, block_size;
packet.c: aadlen = (mac && mac->enabled && mac->etm)
|| authlen ? 4 : 0;
sshkey-xmss.c: aadlen = sshbuf_len(encoded);
sshkey-xmss.c: aadlen = sshbuf_len(copy) - sshbuf_len(encoded);
$
//Peter