Re: aadlen in chacha20

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



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
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux