C# 클래스 Goedel.Cryptography.CryptoProviderExchangeRSA

Provider for RSA encryption.
상속: CryptoProviderExchange
파일 보기 프로젝트 열기: hallambaker/Mathematical-Mesh

보호된 프로퍼티들

프로퍼티 타입 설명
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