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       Returns the number of bits in the Math::Pari integer object $n.
17
18   bin2mp($string)
19       Given a string $string of any length, treats the string as a base-256
20       representation of an integer, and returns that integer, a Math::Pari
21       object.
22
23   mp2bin($int)
24       Given a biginteger $int (a Math::Pari object), linearizes the integer
25       into an octet string, and returns the octet string.
26
27   mod_exp($a, $exp, $n)
28       Computes $a ^ $exp mod $n and returns the value. The calculations are
29       done using Math::Pari, and the return value is a Math::Pari object.
30
31   mod_inverse($a, $n)
32       Computes the multiplicative inverse of $a mod $n and returns the value.
33       The calculations are done using Math::Pari, and the return value is a
34       Math::Pari object.
35

AUTHOR & COPYRIGHTS

37       Please see the Crypt::DSA manpage for author, copyright, and license
38       information.
39
40
41
42perl v5.32.0                      2020-07-28               Crypt::DSA::Util(3)
Impressum