mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
10a2f0b311
The setkey function for GCM/CCM algorithms didn't verify the key
length before copying the key and subtracting the salt length.
This patch delays the copying of the key til after the verification
has been done. It also adds checks on the key length to ensure
that it's at least as long as the salt.
Fixes:
|
||
---|---|---|
.. | ||
cipher.c | ||
cipher.h | ||
Makefile | ||
spu2.c | ||
spu2.h | ||
spu.c | ||
spu.h | ||
spum.h | ||
util.c | ||
util.h |