<< NL_S_Prime NL_S: Security NL_S_RSAEncryption >>

NARVAL >> NL_S: Security > NL_S_RSADecryption

NL_S_RSADecryption

Perform the decryption of a message in respect with the RSA scheme.

Calling Sequence

[R] = NL_S_RSADecryption(N,D,M)

Arguments

N :

Modulus.

D :

Private exponent.

M :

Encrypted message.

R :

Decrypted message.

Description

NL_S_RSADecryption performs the decryption R of the encrypted message M in respect with the RSA scheme (WIKIPEDIA). N and D form the public key.

Examples

n=33;//modulus
e=3;//public exponent
d=7;//private exponent
m=20//smaller than n
[me]=NL_S_RSAEncryption(n,e,m)//encryption
[md]=NL_S_RSADecryption(n,d,me)//application of NL_S_RSADecryption

Report an issue
<< NL_S_Prime NL_S: Security NL_S_RSAEncryption >>