Using ECC Private Key for Encryption

Is it possible to use ECC private key for encryption?

I want to use an ECC private key for encryption because of mutual authentication.
But I cannot find a method (or function) in wolfcrypt (wolfSSL) or the micro-ecc library.

Is is okay to use an (ECC) private key for encryption?
And if so, how can I do this?

Answer

No. In Public key Infrastructure(RSA, ECC) the private key is used to decrypt and the public to encrypt.

Furthermore, you can use private key to sign with digital signature. And the Public key to verify the integrity of the signature.

Leave a Reply

Your email address will not be published. Required fields are marked *