<< NL_S_RSADecryption NL_S: Security NL_S_RSAKeys >>

NARVAL >> NL_S: Security > NL_S_RSAEncryption

NL_S_RSAEncryption

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

Calling Sequence

[R] = NL_S_RSAEncryption(N,E,M)

Arguments

N :

Modulus.

E :

Private exponent.

M :

Message.

R :

Encrypted message.

Description

NL_S_RSAEncryption performs the encryption R of the message M in respect with the RSA scheme (WIKIPEDIA). N and E form the private key. The message M must be smaller than N (integer).

Examples

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

Report an issue
<< NL_S_RSADecryption NL_S: Security NL_S_RSAKeys >>