{
    "content": [
        {
            "type": "text",
            "text": "# Crypt::DSA::Util (perldoc)\n\n## NAME\n\nCrypt::DSA::Util - DSA Utility functions\n\n## SYNOPSIS\n\nuse Crypt::DSA::Util qw( func1 func2 ... );\n\n## DESCRIPTION\n\n*Crypt::DSA::Util* contains a set of exportable utility functions used through the *Crypt::DSA*\nset of libraries.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Crypt::DSA::Util",
        "section": "",
        "mode": "perldoc",
        "summary": "Crypt::DSA::Util - DSA Utility functions",
        "synopsis": "use Crypt::DSA::Util qw( func1 func2 ... );",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 25,
                "subsections": []
            }
        ],
        "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": []
            }
        }
    }
}