Crypt::DH replacement that uses GMP directly
Crypt::DH::GMP is a (somewhat) portable replacement to Crypt::DH, implemented mostly in C.
In the beginning, there was Crypt::DH. However, Crypt::DH suffers from a couple of problems: GMP/Pari libraries are almost always required; Crypt::DH additionally has Math::BigInt in between GMP. Instantiating an object comes with a relatively high cost, and if you make many computations in one go, your program will suffer dramatically because of this.
Crypt::DH::GMP attempts to alleviate these problems by providing a Crypt::DH-compatible layer, which, instead of doing calculations via Math::BigInt, directly works with libgmp in C.
This means that essentially 2 call stacks worth of expensive Perl method calls are eliminated and also only load 1 (Crypt::DH::GMP) module instead of 3 (Crypt::DH + Math::BigInt + Math::BigInt::GMP) is needed.
These add up to a fairly significant increase in performance.
20 March 2013
License: Artistic or GPL-1+
This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl.
On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version.
On Debian systems, the complete text of version 1 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'.
Leaders and contributors
Resources and communication
|Debian (Ref) (R)||https://tracker.debian.org/pkg/libcrypt-dh-gmp-perl|
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.
The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.