C# Class Goedel.Cryptography.CryptoProviderExchangeRSA

Provider for RSA encryption.
Inheritance: CryptoProviderExchange
Afficher le fichier Open project: hallambaker/Mathematical-Mesh

Protected Properties

Свойство Type Description
OAEP bool

Private Properties

Свойство Type Description
Factory CryptoProvider

Méthodes publiques

Méthode Description
CryptoProviderExchangeRSA ( RSAKeyPair RSAKeyPair ) : System

Create an instance of the RSA crypto provider.

CryptoProviderExchangeRSA ( int KeySize ) : System

Return a provider with the specified key size.

Decrypt ( byte Input ) : byte[]

Decrypt data block.

Encrypt ( byte Input ) : byte[]

Encrypt data block. Block MUST be smaller than the key length or an exception will be thrown.

FindLocal ( string UDF ) : bool

Locate private key in local key store.

Generate ( KeySecurity KeySecurity ) : void

Generate a new RSA Key Pair with the Key size specified when the instance was created.

Private Methods

Méthode Description
Factory ( int KeySize, CryptoAlgorithmID DigestAlgorithm ) : CryptoProvider

Method Details

CryptoProviderExchangeRSA() public méthode

Create an instance of the RSA crypto provider.
public CryptoProviderExchangeRSA ( RSAKeyPair RSAKeyPair ) : System
RSAKeyPair RSAKeyPair RSAKeyPair to use.
Résultat System

CryptoProviderExchangeRSA() public méthode

Return a provider with the specified key size.
public CryptoProviderExchangeRSA ( int KeySize ) : System
KeySize int Key length in bits.
Résultat System

Decrypt() public méthode

Decrypt data block.
public Decrypt ( byte Input ) : byte[]
Input byte Data to decrypt.
Résultat byte[]

Encrypt() public méthode

Encrypt data block. Block MUST be smaller than the key length or an exception will be thrown.
public Encrypt ( byte Input ) : byte[]
Input byte Data to encrypt.
Résultat byte[]

FindLocal() public méthode

Locate private key in local key store.
public FindLocal ( string UDF ) : bool
UDF string Fingerprint of key
Résultat bool

Generate() public méthode

Generate a new RSA Key Pair with the Key size specified when the instance was created.
public Generate ( KeySecurity KeySecurity ) : void
KeySecurity KeySecurity
Résultat void

Property Details

OAEP protected_oe property

If true (default), OAEP padding will be used. If false, deprecated PKCS#1.5 padding is used.
protected bool OAEP
Résultat bool