aadlen in chacha20
Peter Stuge
peter at stuge.se
Sun Aug 7 02:39:03 AEST 2022
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
More information about the openssh-unix-dev
mailing list