What is the difference between encrypting some data vs signing some data (using ECC)?
Does it simply reverse the role of the public-private keys?
In the past, I thought it was just a change of role for publickey and privatekey.
As the diagram:
(Encrypt diagram)
(Sign diagram)
But in practice, it seem not easy like me think.
For example, I can't use ECDSA public key to encrypt and private key corresponding to decrypt.
In this case I must use ECDH.
I do not have much experience on this issue. Please help me.
Thanks in advance.