|
|
| File Information |
| Description |
Suppose
p is an odd prime,
ord(a) = p-1
GCD(x, p) = 1
N is an integer >= 2
Then
y = logmod(x, a, p, N)
Returns y such that a^y = x (mod p^N)
Example
Let x= vpi(154), a = vpi(7), p = vpi(17), N = vpi(37)
y = logmod(x, a, p, N)
returns
y = 2088349219044680767324467844670001776975183904 |
| MATLAB release |
MATLAB 7.2 (R2006a)
|
| Other requirements |
The function mfile modinv.m IS NOT required any more. |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 16 Apr 2009 |
Rewrote the description. |
| 23 Apr 2009 |
Modified to correct logic errors and to exploit the latest version of the vpi software. A Microsoft word file has been included that describes and proves the algorithm used. |
| 23 Apr 2009 |
Brought the description up to date. This routine no longer needs the m-file modinv.m. |
|
Contact us at files@mathworks.com