mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 17:41:22 +00: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 |