1Crypt::DSA::Util(3)   User Contributed Perl Documentation  Crypt::DSA::Util(3)
2
3
4

NAME

6       Crypt::DSA::Util - DSA Utility functions
7

SYNOPSIS

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

DESCRIPTION

12       Crypt::DSA::Util contains a set of exportable utility functions used
13       through the Crypt::DSA set of libraries.
14
15       bitsize($n)
16
17       Returns the number of bits in the Math::Pari integer object $n.
18
19       bin2mp($string)
20
21       Given a string $string of any length, treats the string as a base-256
22       representation of an integer, and returns that integer, a Math::Pari
23       object.
24
25       mp2bin($int)
26
27       Given a biginteger $int (a Math::Pari object), linearizes the integer
28       into an octet string, and returns the octet string.
29
30       mod_exp($a, $exp, $n)
31
32       Computes $a ^ $exp mod $n and returns the value. The calculations are
33       done using Math::Pari, and the return value is a Math::Pari object.
34
35       mod_inverse($a, $n)
36
37       Computes the multiplicative inverse of $a mod $n and returns the value.
38       The calculations are done using Math::Pari, and the return value is a
39       Math::Pari object.
40

AUTHOR & COPYRIGHTS

42       Please see the Crypt::DSA manpage for author, copyright, and license
43       information.
44
45
46
47perl v5.8.8                       2004-12-31               Crypt::DSA::Util(3)
Impressum