]> git.ipfire.org Git - thirdparty/linux.git/commit - crypto/testmgr.h
crypto: testmgr - add keygen tests for ffdheXYZ(dh) templates
authorNicolai Stange <nstange@suse.de>
Mon, 21 Feb 2022 12:10:56 +0000 (13:10 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 2 Mar 2022 22:47:51 +0000 (10:47 +1200)
commit209b7fc9c9249c400610cec1cbfba848f293f2e9
treef35fbdcfb7efbcf5b8f45ef91e2f856af548c8e8
parent1e207964566738b49b003e80063fd712af75b82c
crypto: testmgr - add keygen tests for ffdheXYZ(dh) templates

Now that the ffdheXYZ(dh) templates support ephemeral key generation, add
->keygen = 1 TVs for each of them to the testmgr.c.

In order to facilitate string merging by the compiler, set party B's secret
and public keys to the ones specified for party A in the respective
existing known answer test. With GCC 7.5 on x86_64, this leads to an
increase of testmgr.o size by less than half a kB.

Signed-off-by: Nicolai Stange <nstange@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.h