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)
commit47d3fd390e899e0403da35733b75832eacfbbc3f
tree978c7091ffb0209330bb560fe5e5cf554ded03a9
parent6755fd269d5c100b0eca420db501ae58435efd6e
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