From 4a6413997a8908046e1c6d2df5ec72905e42789d Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 4 Sep 2024 16:08:17 -0400 Subject: [PATCH] Tests using imported private keys in ECDH Signed-off-by: Simo Sorce --- tests/tecdh | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/tests/tecdh b/tests/tecdh index b9a68ba4..fe155dd6 100755 --- a/tests/tecdh +++ b/tests/tecdh @@ -23,18 +23,17 @@ pkeyutl -derive -inkey ${ECBASEURI} -peerkey ${TESTSSRCDIR}/testp256.pub.pem -out ${TMPPDIR}/forced.pub.ecdh.bin' -### Private EC Key import not supported yet -#title PARA "ECDH Exchange forced: private key in file" -#ossl ' -#pkeyutl -derive -inkey ${TESTSSRCDIR}/testp256.pri.pem -# -peerkey ${ECPEERPUBURI} -# -out ${TMPPDIR}/forced.pri.ecdh.bin' +title PARA "ECDH Exchange forced: private key in file" +ossl ' +pkeyutl -derive -inkey ${TESTSSRCDIR}/testp256.pri.pem + -peerkey ${ECPEERPUBURI} + -out ${TMPPDIR}/forced.pri.ecdh.bin' -#title PARA "ECDH Exchange forced: both key in file" -#ossl ' -#pkeyutl -derive -inkey ${TESTSSRCDIR}/testp256.pri.pem -# -peerkey ${TESTSSRCDIR}/testp256.pub.pem -# -out ${TMPPDIR}/forced.both.ecdh.bin' +title PARA "ECDH Exchange forced: both key in file" +ossl ' +pkeyutl -derive -inkey ${TESTSSRCDIR}/testp256.pri.pem + -peerkey ${TESTSSRCDIR}/testp256.pub.pem + -out ${TMPPDIR}/forced.both.ecdh.bin' OPENSSL_CONF=${ORIG_OPENSSL_CONF} exit 0