Keeping it quick (Perl crypto)

It’s generally worth installing one of the math modules for Math::BigInt to use early on after installing perl if you want to ensure your installs (and your perl in general) goes as quickly as possible. Some of the crypto and random number modules use Math::BigInt and without a fast module under the hood they can take quite a long time to do anything.

If you use cpanm to install them use verbose mode (-v) because it’s quite likely they will either ask for input or fail the first time as they check for dependencies.

cpanm -v Math::BigInt::GMP
cpanm -v Math::BigInt::Pari

There may be good reasons to choose one module over the other but I don’t know what they are are. I just went with the one that installed easily. It makes quite a noticeable difference to installing certain modules like Crypt::DH. In fact you can see the time it takes without a fast library in the bug reports against it.

Links

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s