Math::Pari is a fine module, but suffers, I think, from the fact that PARI can't currently be compiled as a dll on windows, at least last time i tried. I would be happy to be corrected here.
Using Math::Pari will also presume a little familiarity with GP and GP scripts, which may not be something you wish to learn. I found GP fun, a little like mathematica without the graphics, but learning it properly, for ecc, will take a little time.
The absence of the native ability of perl to deal with large integer arithmetic has given rise to some of the
most ingenious perl/<large integer capable software> hybrids I've ever seen - witness adam back's diminutive munitions page, 5 lines over which i spent 2 days.
you could use bc instead of pari -
but the new perl will include large integers as a basic type.
or, perhaps quickest, you could perlify the code in michael rosing's 'implementing elliptic curve cryptography', written in c, and use bigint as the basis for your large integer arithmetic. while not the fastest in terms of runtime, at least you'd have the advantage that you could debug it all in one spot/ide(if you use activestate).
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.