mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-15 09:55:36 +00:00
crypto: dh - update test for public key verification
By adding a zero byte-length for the DH parameter Q value, the public key verification test is disabled for the given test. Reported-by: Eric Biggers <ebiggers3@gmail.com> Signed-off-by: Stephan Mueller <smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
cf862cbc83
commit
c98fae5e29
@ -644,12 +644,14 @@ static const struct kpp_testvec dh_tv_template[] = {
|
||||
"\x11\x02" /* len */
|
||||
"\x00\x01\x00\x00" /* key_size */
|
||||
"\x00\x01\x00\x00" /* p_size */
|
||||
"\x00\x00\x00\x00" /* q_size */
|
||||
"\x01\x00\x00\x00" /* g_size */
|
||||
#else
|
||||
"\x00\x01" /* type */
|
||||
"\x02\x11" /* len */
|
||||
"\x00\x00\x01\x00" /* key_size */
|
||||
"\x00\x00\x01\x00" /* p_size */
|
||||
"\x00\x00\x00\x00" /* q_size */
|
||||
"\x00\x00\x00\x01" /* g_size */
|
||||
#endif
|
||||
/* xa */
|
||||
@ -751,12 +753,14 @@ static const struct kpp_testvec dh_tv_template[] = {
|
||||
"\x11\x02" /* len */
|
||||
"\x00\x01\x00\x00" /* key_size */
|
||||
"\x00\x01\x00\x00" /* p_size */
|
||||
"\x00\x00\x00\x00" /* q_size */
|
||||
"\x01\x00\x00\x00" /* g_size */
|
||||
#else
|
||||
"\x00\x01" /* type */
|
||||
"\x02\x11" /* len */
|
||||
"\x00\x00\x01\x00" /* key_size */
|
||||
"\x00\x00\x01\x00" /* p_size */
|
||||
"\x00\x00\x00\x00" /* q_size */
|
||||
"\x00\x00\x00\x01" /* g_size */
|
||||
#endif
|
||||
/* xa */
|
||||
|
Loading…
x
Reference in New Issue
Block a user