[Qt-interest] RSA Key gen using openssl in Qt

Plato P.B. platodreams at gmail.com
Tue Feb 8 17:02:21 CET 2011


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.
I did some google searches but i didnt get any valuable information on this.
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

thanks in Advance! :)



On Tue, Feb 8, 2011 at 4:26 PM, Sean Harmer <sean.harmer at maps-technology.com
> wrote:

> Hi,
>
> On Tuesday 08 February 2011 16:12:07 Plato P.B. wrote:
> > Thanks for the help guys. But I was not able to resolve this issue. So i
> > setup my linux machine for qt and this thing started working! Thanks
> again
> > for the help you guys were giving!
>
> Yes it is simple on Linux thanks to decent package managers. To get
> qca-ossl
> building on Windows you have to set up your winlocal.prf file. On my
> machine
> this file contains:
>
> WINLOCAL_PREFIX = D:/OpenSSL
>
> which is where I have installed the OpenSSL package. The OpenSSL headers
> and
> libraries are obviously needed during the build of qca-ossl. The package I
> used for OpenSSL for windows can be found here:
>
> http://www.slproweb.com/products/Win32OpenSSL.html
>
> I used the MSVC compiler (2005 version) so I also had to make sure that I
> had
> installed the MSVC 2008 vc runtime which is what the OpenSSL libs form that
> site are built against.
>
> Withthe above in place I just did:
>
> configwin.bat rd
> qmake
> nmake (or jom if you have it installed)
>
> Unfortunately there is no make install target or install script so we need
> to
> copy the needed files manually such that Qt can find the plugins. Create
> the
> directory %QTDIR%/plugins/crypto and copy the following files into it:
>
> lib/qca-ossl2.dll
> lib/qca-ossld2.dll
>
> Hope this helps,
>
> Sean
>
> ps On Gentoo all of the above was as easy as "emerge -va qca qca-ossl" :-)
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>



-- 






*Thanks & Regards,*

Plato P.B.
obscurant1st.biz/blog
coolfacts.in

B'Lore.  ( +919844882641)
Kerala.  ( +919037036661)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110208/6465eeaf/attachment.html 


More information about the Qt-interest-old mailing list