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:
|
||
---|---|---|
.. | ||
Makefile | ||
cipher.c | ||
cipher.h | ||
spu.c | ||
spu.h | ||
spu2.c | ||
spu2.h | ||
spum.h | ||
util.c | ||
util.h |