[Qt-interest] RSA Key gen using openssl in Qt
Brad Hards
bradh at frogmouth.net
Tue Feb 8 21:41:49 CET 2011
On Wednesday, February 09, 2011 03:02:21 am Plato P.B. wrote:
> Hi,
> Thanks for the detailed explanation.
> Now that I have configured this QCA and qca-ossl now i am working with it.
> and i have done the key generation by using
>
> QCA::PrivateKey seckey = QCA::KeyGenerator().createRSA(1024);
>
> I have written this key to a file.
> Now i need to sign a file using this generated key by using sha1.
This problem is under-defined. Exactly what do you need to do?
> I did some google searches but i didnt get any valuable information on
> this.
I think you might get more information from the API documentation, which can
be found at http://delta.affinix.com/docs/qca/
For RSA signing, this may be useful:
http://delta.affinix.com/docs/qca/rsatest_8cpp-example.html
> I think using qca and qca-ossl in qt is very rare. Anyway if anyone
> could help me on this it will be very helpfull
I don't think there is much data on how often QCA is used, but it shouldn't
often be used at this (very low) level.
I don't mean to sound harsh, but are you confident that you _really_ understand
what you are doing here? Low level crypto operations are easy to do, but easy
to do incorrectly / insecurely (i.e. you'll have something that doesn't really
address the threat model you're protecting against).
Brad
More information about the Qt-interest-old
mailing list