Crypt::DSA::Util(3pm)

Crypt::DSA::Util3pm

Dsa utility functions

Usage

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

Overview

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.

Releases

7 releases since Debian 7 (Wheezy); the text changed 3 times.

  1. 7–8
  2. 9–11
  3. 12
  4. 13

From libcrypt-dsa-perl 1.19-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.