Code covered by the BSD License  

Highlights from
Modular Inverse

5.0

5.0 | 1 rating Rate this file 15 Downloads (last 30 days) File Size: 1.67 KB File ID: #6115
image thumbnail

Modular Inverse

by G. Levin

 

25 Oct 2004 (Updated 28 Nov 2007)

Finds the modular inverse over finite (Galois) field.

| Watch this File

File Information
Description

MULINV(X,P) is a function that finds the modular inverse of vector X over finite (Galois) field of order P, i.e. if Y = MULINV(X,P)
then (X*Y) mod P = 1 or Y = X^(-1) over field of order P.

The input parameters are vector of integers X and a scalar P which represents the field order. The output is a size(X) vector which
is the modular inverses of X over P.

The field order P must be a prime number and all elements of X should belong to the field i.e. X < P. Note: Over any field of numbers
the modular inverse of one is one and the modular inverse of zero doesn't exist.

Example: X = [1 2 5], P = 7.
         Y = MULINV(X,P) => Y = [1 4 3];

The function doesn't check the format of input parameters.

Reference:
S. Bruce, Applied Cryptography: Protocols, Algorithms, and Source Code in C, 2nd edition, John Wiley and Sons, Inc., US-Canada, 1996.

MATLAB release MATLAB 7 (R14)
Other requirements No special requirements.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
02 May 2011 Young Hoon  
Please login to add a comment or rating.
Updates
28 Nov 2007

Changing title name

Tag Activity for this File
Tag Applied By Date/Time
coding theory G. Levin 22 Oct 2008 07:34:08
information theory G. Levin 22 Oct 2008 07:34:08
galois G. Levin 22 Oct 2008 07:34:08
finite field G. Levin 22 Oct 2008 07:34:08
cryptography G. Levin 22 Oct 2008 07:34:08
coding G. Levin 22 Oct 2008 07:34:08

Contact us at files@mathworks.com