C# Class WebApplications.Utilities.Cryptography.RSACryptographyProvider

Implements the RSA algorithm as an AsymmetricCryptographyProvider.
Inheritance: AsymmetricCryptographyProvider
Mostrar archivo Open project: webappsuk/CoreLibraries Class Usage Examples

Public Methods

Method Description
GetDecryptor ( ) : ICryptoTransform
GetEncryptor ( ) : ICryptoTransform

Private Methods

Method Description
Create ( RSAParameters parameters ) : RSACryptographyProvider
Create ( [ configuration ) : RSACryptographyProvider
Create ( [ algorithm, [ configurationElement ) : RSACryptographyProvider
Create ( int keySize = 1024 ) : RSACryptographyProvider
DecryptBlock ( [ provider, [ inputBuffer, int inputOffset, int inputCount, [ outputBuffer, int outputOffset ) : int

Decrypts the specified region of the input byte array and copies the resulting transform to the specified region of the output byte array.

DecryptFinalBlock ( [ provider, [ inputBuffer, int inputOffset, int inputCount ) : byte[]

Decrypts the specified region of the specified byte array.

EncryptBlock ( [ algorithm, [ inputBuffer, int inputOffset, int inputCount, [ outputBuffer, int outputOffset ) : int

Encrypts the specified region of the input byte array and copies the resulting transform to the specified region of the output byte array.

EncryptFinalBlock ( [ algorithm, [ inputBuffer, int inputOffset, int inputCount ) : byte[]

Encrypts the specified region of the specified byte array.

RSACryptographyProvider ( [ configuration, RSAParameters parameters, bool canEncrypt, ushort inputBlockSize, ushort outputBlockSize ) : System

Initializes a new instance of the RSACryptographyProvider class from an XML configuration.

Method Details

GetDecryptor() public method

public GetDecryptor ( ) : ICryptoTransform
return ICryptoTransform

GetEncryptor() public method

public GetEncryptor ( ) : ICryptoTransform
return ICryptoTransform