Add EVP demo for X25519 key exchange
authorHugo Landau <hlandau@openssl.org>
Wed, 2 Mar 2022 13:08:53 +0000 (13:08 +0000)
committerPauli <pauli@openssl.org>
Fri, 4 Mar 2022 00:05:02 +0000 (11:05 +1100)
commit6b2e7b1105fbcea42e8318f7377e6238b8c77548
treec6bab37ef9f96e6da201a5f1f86fb92c92f830a0
parent15ad2f814a65496c6cbe0994e91a4cb7cad7f1a6
Add EVP demo for X25519 key exchange

This offers both a known answer test with fixed keys and also
demonstrates a more realistic usage with random keys.

Fixes #14118.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17799)

(cherry picked from commit 2cc7c9b6981d683711e76c3483f813701b686eb9)
demos/keyexch/x25519.c [new file with mode: 0644]