]> git.proxmox.com Git - mirror_zfs.git/commit
ICP: gcm: Allocate hash subkey table separately
authorAttila Fülöp <attila@fueloep.org>
Fri, 30 Oct 2020 22:24:21 +0000 (23:24 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 30 Oct 2020 23:06:09 +0000 (16:06 -0700)
commitc6b0680d9be975cc84789aa1aa2632d13ff21722
tree3d2e71c22cdfe176faa5f0c9dd4ba7c04b2be7d3
parent2c37e1416be5ad6ad1d780ab6eed7bd9c2598788
ICP: gcm: Allocate hash subkey table separately

While evaluating other assembler implementations it turns out that
the precomputed hash subkey tables vary in size, from 8*16 bytes
(avx2/avx512) up to 48*16 bytes (avx512-vaes), depending on the
implementation.

To be able to handle the size differences later, allocate
`gcm_Htable` dynamically rather then having a fixed size array, and
adapt consumers.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Attila Fülöp <attila@fueloep.org>
Closes #11102
module/icp/algs/modes/gcm.c
module/icp/algs/modes/modes.c
module/icp/asm-x86_64/modes/aesni-gcm-x86_64.S
module/icp/include/modes/modes.h
module/icp/io/aes.c