Skip to content

How to create a shared secret with DH #2970

Answered by popovec
mramonlopez asked this question in Q&A
Discussion options

You must be logged in to vote

You cannot use the --label switch, you must use the --id switch:

pkcs11-tool --modul /usr/lib/softhsm/libsofthsm2.so --login -p "123456" --login-type user \
    --id 1 --derive -i alice-public.der -m ECDH1-DERIVE -o bob_shared_secret.raw

pkcs11-tool --modul /usr/lib/softhsm/libsofthsm2.so --login -p "123456" --login-type user \
    --id 2 --derive -i bob-public.der -m ECDH1-DERIVE -o alice_shared_secret.raw

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by mramonlopez
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@mramonlopez
Comment options

@popovec
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants