HomeFreeBSD

ICP: gcm: Allocate hash subkey table separately

Description

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

Details

Provenance
Attila Fülöp <attila@fueloep.org>Authored on Oct 30 2020, 10:24 PM
GitHub <noreply@github.com>Committed on Oct 30 2020, 10:24 PM
Parents
rGd9655c5b3723: Add some missing cfi frame info in aesni-gcm-x86_64.S
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGe8beeaa1116c: ICP: gcm: Allocate hash subkey table separately (authored by Attila Fülöp <attila@fueloep.org>).Oct 30 2020, 10:24 PM