mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-24 11:34:50 +08: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 |