I'm new with CryptoLib4Pascal and I can't find an example to obtain a session key using curve25519.
With a partial pascal porting of tweet-nacl (https://github.com/krisztianpinter/curve25519-delphi), A and B set their keys with something like pubKey_A:=crypto_scalarmult_base(privKey_A) and pubKey_B:= crypto_scalarmult_base(privKey_B).
Next A and B calculate the common session key with sessionKey:=crypto_scalarmult(privKey_A,pubKey_B) and sessionKey:=crypto_scalarmult(privKey_B,pubKey_A)
I looked at UsageExamples but I can't figure out how to do something similar.
Thanks and Regards
Raffaele
Just found that there are other examples than those in UsageExamples.
Thank you anyway
Hello,
I'm new with CryptoLib4Pascal and I can't find an example to obtain a session key using curve25519.
With a partial pascal porting of tweet-nacl (https://github.com/krisztianpinter/curve25519-delphi), A and B set their keys with something like pubKey_A:=crypto_scalarmult_base(privKey_A) and pubKey_B:= crypto_scalarmult_base(privKey_B).
Next A and B calculate the common session key with sessionKey:=crypto_scalarmult(privKey_A,pubKey_B) and sessionKey:=crypto_scalarmult(privKey_B,pubKey_A)
I looked at UsageExamples but I can't figure out how to do something similar.
Thanks and Regards Raffaele
Just found that there are other examples than those in UsageExamples. Thank you anyway