Alt-Crypt-RSA-BigInt
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
use ExtUtils::MakeMaker;
use lib 'inc'; # load our bundled version of Devel::CheckLib
use Devel::CheckLib;
my %bigint_preq;
if ( check_lib(lib => 'gmp', header => 'gmp.h') ) {
# GMP found. Life is *good*.
%bigint_preq = (
'Math::BigInt::GMP' => 0,
'Math::Prime::Util::GMP' => 0,
);
} elsif ( check_lib(lib => 'pari', header => 'pari/pari.h') ) {
# Pari found. Slower than GMP in this application, but still adequate.
%bigint_preq = (
'Math::BigInt::Pari' => 0,
);
} else {
# Yech, no big int libraries found.
print <<EO_BIGINT;
**********************************************************
*
* Building without GMP or Pari support.
*
* Operations will be very slow.
*
* Strongly consider installing GMP and Math::BigInt::GMP.
*
**********************************************************
EO_BIGINT
}
WriteMakefile1(
NAME => 'Alt::Crypt::RSA::BigInt',
ABSTRACT => 'RSA public-key cryptosystem, using Math::BigInt',
VERSION_FROM => 'lib/Alt/Crypt/RSA/BigInt.pm',
LICENSE => 'perl',
AUTHOR => 'Dana A Jacobsen <dana@acm.org>',
BUILD_REQUIRES=>{
'Test::More' => '0.45',
'Benchmark' => 0,
'MIME::Base64' => 0,
},
PREREQ_PM => {
'Math::BigInt' => '1.78', # try => backend
'Math::Prime::Util' => '0.64', # built in csprng
'Carp' => 0,
'Exporter' => 0,
'Crypt::CBC' => '2.17',
'Crypt::Blowfish' => 0,
'Data::Dumper' => 0,
'Tie::EncryptedHash' => 0,
'Convert::ASCII::Armour' => 0,
'Sort::Versions' => 0,
'Digest::SHA' => 0,
'Digest::MD5' => 0,
'Digest::MD2' => 0,
'Class::Loader' => 0,
'Data::Buffer' => 0,
( run in 0.918 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )