{
    "mode": "perldoc",
    "parameter": "Crypt::DSA::Util",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Crypt%3A%3ADSA%3A%3AUtil/json",
    "generated": "2026-06-10T16:26:57Z",
    "synopsis": "use Crypt::DSA::Util qw( func1 func2 ... );",
    "sections": {
        "NAME": {
            "content": "Crypt::DSA::Util - DSA Utility functions\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Crypt::DSA::Util qw( func1 func2 ... );\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "*Crypt::DSA::Util* contains a set of exportable utility functions used through the *Crypt::DSA*\nset of libraries.\n\nbitsize($n)\nReturns the number of bits in the *Math::Pari* integer object *$n*.\n\nbin2mp($string)\nGiven a string *$string* of any length, treats the string as a base-256 representation of an\ninteger, and returns that integer, a *Math::Pari* object.\n\nmp2bin($int)\nGiven a biginteger *$int* (a *Math::Pari* object), linearizes the integer into an octet string,\nand returns the octet string.\n\nmodexp($a, $exp, $n)\nComputes $a ^ $exp mod $n and returns the value. The calculations are done using *Math::Pari*,\nand the return value is a *Math::Pari* object.\n\nmodinverse($a, $n)\nComputes the multiplicative inverse of $a mod $n and returns the value. The calculations are\ndone using *Math::Pari*, and the return value is a *Math::Pari* object.\n\nAUTHOR & COPYRIGHTS\nPlease see the Crypt::DSA manpage for author, copyright, and license information.\n",
            "subsections": []
        }
    },
    "summary": "Crypt::DSA::Util - DSA Utility functions",
    "flags": [],
    "examples": [],
    "see_also": []
}