summaryrefslogtreecommitdiff
path: root/sys/dev/microcode/tools/array2bin.c
diff options
context:
space:
mode:
authormaxv <maxv@NetBSD.org>2018-05-30 17:17:11 +0000
committermaxv <maxv@NetBSD.org>2018-05-30 17:17:11 +0000
commitee9284b3760b1356dfe874b7ea49091ee6c7edc0 (patch)
treedc40e130f662c5c890178ccf965d4c04a2b591ff /sys/dev/microcode/tools/array2bin.c
parentdf8e34544a058a33a6894cf8caac0ffbba7d0b4f (diff)
Introduce ah_authsiz, which computes the length of the ICV only. Use it in
esp_hdrsiz, and clarify. Until now we were using ah_hdrsiz, and were relying on the fact that the size of the AH header happens to be equal to that of the ESP trailer. Now the size of the ESP trailer is added manually. This also fixes one branch in esp_hdrsiz: we always append an ESP trailer, so it must always be taken into account, and not just when an ICV is here.
Diffstat (limited to 'sys/dev/microcode/tools/array2bin.c')
0 files changed, 0 insertions, 0 deletions