aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAttila Fülöp <[email protected]>2023-03-08 20:12:15 +0100
committerGitHub <[email protected]>2023-03-08 11:12:15 -0800
commit8d9752569b3d7308f3df1295316385f6cbbaac54 (patch)
tree044ead57e29c1c86f047ab22ca49268544830a87 /tests
parent7d638df09be7482935bcf6ec8e4ea2ac8a8be1a8 (diff)
ICP: AES-GCM: Unify gcm_init_ctx() and gmac_init_ctx()
gmac_init_ctx() duplicates most of the code in gcm_int_ctx() while it just needs to set its own IV length and AAD tag length. Introduce gcm_init_ctx_impl() which handles the GCM and GMAC differences while reusing the duplicated code. While here, fix a flaw where the AVX implementation would accept a context using a byte swapped key schedule which it could not handle. Also constify the IV and AAD pointers passed to gcm_init{,_avx}(). Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Rob Norris <[email protected]> Signed-off-by: Attila Fülöp <[email protected]> Closes #14529
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions