Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Crypt::DSA::Util

Name Crypt::DSA::Util
Version 1.17
Located at /usr/share/perl5
File /usr/share/perl5/Crypt/DSA/Util.pm
Is Core No
Search CPAN for this module Crypt::DSA::Util
Documentation Crypt::DSA::Util
Module Details Crypt::DSA::Util

NAME

Crypt::DSA::Util - DSA Utility functions


SYNOPSIS

    use Crypt::DSA::Util qw( func1 func2 ... );


DESCRIPTION

Crypt::DSA::Util contains a set of exportable utility functions used through the Crypt::DSA set of libraries.

bitsize($n)

Returns the number of bits in the Math::Pari integer object $n.

bin2mp($string)

Given a string $string of any length, treats the string as a base-256 representation of an integer, and returns that integer, a Math::Pari object.

mp2bin($int)

Given a biginteger $int (a Math::Pari object), linearizes the integer into an octet string, and returns the octet string.

mod_exp($a, $exp, $n)

Computes $a ^ $exp mod $n and returns the value. The calculations are done using Math::Pari, and the return value is a Math::Pari object.

mod_inverse($a, $n)

Computes the multiplicative inverse of $a mod $n and returns the value. The calculations are done using Math::Pari, and the return value is a Math::Pari object.


AUTHOR & COPYRIGHTS

Please see the Crypt::DSA manpage for author, copyright, and license information.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026