Arci.Networking
Arci.Networking.Security.RsaEncryptor Class Reference

Rsa encryptor More...

Inheritance diagram for Arci.Networking.Security.RsaEncryptor:

Public Member Functions

 RsaEncryptor (byte[] modulus, byte[] publicExponent)
 Creates RSA instance. More...
 
 RsaEncryptor (RSAParameters rsaParams)
 Creates RSA instance More...
 
byte [] Encrypt (byte[] toEncrypt)
 Encrypts data More...
 
byte [] Decrypt (byte[] toDecrypt)
 Decrypts data More...
 
void Dispose ()
 Clears allocated resources More...
 

Properties

bool UseOAEPPadding [get, set]
 Sets true to use OAEP padding. More...
 

Detailed Description

Rsa encryptor

Constructor & Destructor Documentation

§ RsaEncryptor() [1/2]

Arci.Networking.Security.RsaEncryptor.RsaEncryptor ( byte []  modulus,
byte []  publicExponent 
)
inline

Creates RSA instance.

Used only for encryption

Parameters
modulusModulus to be set
publicExponentExponent to be set

§ RsaEncryptor() [2/2]

Arci.Networking.Security.RsaEncryptor.RsaEncryptor ( RSAParameters  rsaParams)
inline

Creates RSA instance

Parameters
rsaParamsCustom RSA Parameters

Member Function Documentation

§ Decrypt()

byte [] Arci.Networking.Security.RsaEncryptor.Decrypt ( byte []  toDecrypt)
inline

Decrypts data

Parameters
toDecryptData to decrypt
Returns
Decrypted data

§ Dispose()

void Arci.Networking.Security.RsaEncryptor.Dispose ( )
inline

Clears allocated resources

§ Encrypt()

byte [] Arci.Networking.Security.RsaEncryptor.Encrypt ( byte []  toEncrypt)
inline

Encrypts data

Parameters
toEncryptData to encrypt
Returns
Encrypted data

Property Documentation

§ UseOAEPPadding

bool Arci.Networking.Security.RsaEncryptor.UseOAEPPadding
getset

Sets true to use OAEP padding.

Otherwise PKCS#1 v1.5 padding will be used