[QCA]Encrypt with private key and decrypt with public key !
-
Hi,
When i use QCA, I can't decrypt with public key and encrypt with private.
In documentation, private key is for decrypting and public key is for encrypting but the asymetric system don't like this.If we want garantee non-repudiation we also need to encrypt with private key and decrypt with public !
Can someone tell me how solve this problem or ask me if it's a limitation of QCA ?
Regards,
Mohamed -
Paste some code and write what is wrong.
-
the problem don't concern part of code, it concern the conception of API of QCA. Normally with RSA and other asymetric algorithms it's possible to encrypt with private key and decrypt with public key.
In QCA this is not supported !
Regards,
Mohamed -
Of course you can, here is a proof:
http://harmattan-dev.nokia.com/docs/platform-api-reference/xml/daily-docs/libqca2/classQCA_1_1PKey.html#62d01121d3790d4d80cd4e3d60fa0ee6 -
Hi,
I don't think it's a proof because in publickey class there is just method to encrypt but without decrypting and in privatkey class method to decrypt without encypting !
May be I don't understand you ?Regards,
Mohamed -
You should take a look at this example:
http://delta.affinix.com/docs/qca/rsatest_8cpp-example.html#_a8