C# Класс Goedel.Cryptography.CryptoProviderExchangeRSA

Provider for RSA encryption.
Наследование: CryptoProviderExchange
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
OAEP bool

Private Properties

Свойство Тип Описание
Factory CryptoProvider

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Factory ( int KeySize, CryptoAlgorithmID DigestAlgorithm ) : CryptoProvider

Описание методов

CryptoProviderExchangeRSA() публичный Метод

Create an instance of the RSA crypto provider.
public CryptoProviderExchangeRSA ( RSAKeyPair RSAKeyPair ) : System
RSAKeyPair RSAKeyPair RSAKeyPair to use.
Результат System

CryptoProviderExchangeRSA() публичный Метод

Return a provider with the specified key size.
public CryptoProviderExchangeRSA ( int KeySize ) : System
KeySize int Key length in bits.
Результат System

Decrypt() публичный Метод

Decrypt data block.
public Decrypt ( byte Input ) : byte[]
Input byte Data to decrypt.
Результат byte[]

Encrypt() публичный Метод

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.
Результат byte[]

FindLocal() публичный Метод

Locate private key in local key store.
public FindLocal ( string UDF ) : bool
UDF string Fingerprint of key
Результат bool

Generate() публичный Метод

Generate a new RSA Key Pair with the Key size specified when the instance was created.
public Generate ( KeySecurity KeySecurity ) : void
KeySecurity KeySecurity
Результат void

Описание свойств

OAEP защищенное свойство

If true (default), OAEP padding will be used. If false, deprecated PKCS#1.5 padding is used.
protected bool OAEP
Результат bool