From kde-devel Fri Feb 25 23:33:28 2005 From: Brad Hards Date: Fri, 25 Feb 2005 23:33:28 +0000 To: kde-devel Subject: Re: Big numbers Message-Id: <200502261033.35041.bradh () frogmouth ! net> X-MARC-Message: https://marc.info/?l=kde-devel&m=110937457230193 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0220686833==" --===============0220686833== Content-Type: multipart/signed; boundary="nextPart2676997.xxivSsVdTU"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart2676997.xxivSsVdTU Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thu, 24 Feb 2005 04:53 am, John Tapsell wrote: > Is there any bignum library that i can rely on existing? =A0I know it's > kinda bad to have external dependancies, so if not could one be imported?= I > was thinking perhaps even import an existing library and make a nice KDE > wrapper for it, so we have an official kde bignum library. In kdesupport/qca, there is a library (called QCA, for the Qt Cryptographic= =20 Architecture) that has bignum support. The library is still being worked, b= ut=20 the bignum support should be OK - I've documented the API, I've done some=20 unit tests, and it looks mostly like you'd expect Qt to work, if it had=20 bignum support. Note that it is integer only, which may not be what you wan= t,=20 so then you'd have to decide whether to extend QCA, or to write your own. See http://www.frogmouth.net/qca/classQBigInteger.html The underlying implementation is from Botan - http://botan.randombit.net/ The question of whether you can rely on it existing is a bit harder. Certai= nly=20 my goal is to have it as for KDE4 (for a lot of reasons, and kcalc wasn't o= ne=20 I thought of), so you may need to extract part of the library for kcalc, if= =20 it all turns bad. Brad --nextPart2676997.xxivSsVdTU Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBCH7XOGwwszQ/PZzgRAmrmAJ938ppQQWL9P3+SAB+F5/kuLtKfhgCfUrkt 1y6jbax0dRwtFCMvq5d61gY= =AG9s -----END PGP SIGNATURE----- --nextPart2676997.xxivSsVdTU-- --===============0220686833== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============0220686833==--