DOKK / manpages / debian 11 / libcrypt-dsa-perl / Crypt::DSA::Util.3pm.en
Crypt::DSA::Util(3pm) User Contributed Perl Documentation Crypt::DSA::Util(3pm)

Crypt::DSA::Util - DSA Utility functions

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

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

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

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.

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

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.

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.

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

2015-09-01 perl v5.20.2