]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: testmgr - add genkey kpp test
authorTudor-Dan Ambarus <tudor.ambarus@microchip.com>
Tue, 30 May 2017 14:52:49 +0000 (17:52 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 10 Jun 2017 04:04:36 +0000 (12:04 +0800)
commit60521098548ade1fb3da21782a1a1859c7f2d364
tree978c7091ffb0209330bb560fe5e5cf554ded03a9
parent86e8847eaff543668721e785394e92099b3d1d18
crypto: testmgr - add genkey kpp test

The test considers a party that already has a private-public
key pair and a party that provides a NULL key. The kernel will
generate the private-public key pair for the latter, computes
the shared secret on both ends and verifies if it's the same.

The explicit private-public key pair was copied from
the previous test vector.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.c
crypto/testmgr.h