Skip to content

Commit

Permalink
Tests using imported private keys in ECDH
Browse files Browse the repository at this point in the history
Signed-off-by: Simo Sorce <[email protected]>
  • Loading branch information
simo5 committed Sep 4, 2024
1 parent 7802e42 commit 4a64139
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions tests/tecdh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4a64139

Please sign in to comment.