C# Class Goedel.Cryptography.CryptoProviderSignatureRSA

Provider for RSA Signature class.
Inheritance: CryptoProviderSignature
Show file Open project: hallambaker/Mathematical-Mesh

Private Properties

Property Type Description
Factory CryptoProvider

Public Methods

Method Description
CryptoProviderSignatureRSA ( RSAKeyPair RSAKeyPair ) : System

Create an instance of the RSA crypto provider from an RSA Key Pair.

CryptoProviderSignatureRSA ( int KeySize ) : System

Create an instance of the RSA crypto provider.

CryptoProviderSignatureRSA ( int KeySize, CryptoAlgorithmID DigestAlgorithm ) : System

Create an instance of the RSA crypto provider with specified default key size and digest algorithm.

FindLocal ( string UDF ) : bool

Locate the private key in the local key store.

Generate ( KeySecurity KeySecurity ) : void

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

Sign ( CryptoData Data ) : CryptoData

Sign a previously computed digest (requires private key).

Verify ( CryptoData Data, byte Signature ) : bool

Verify signature.

Private Methods

Method Description
Factory ( int KeySize, CryptoAlgorithmID DigestAlgorithm ) : CryptoProvider

Method Details

CryptoProviderSignatureRSA() public method

Create an instance of the RSA crypto provider from an RSA Key Pair.
public CryptoProviderSignatureRSA ( RSAKeyPair RSAKeyPair ) : System
RSAKeyPair RSAKeyPair The RSA Key Pair
return System

CryptoProviderSignatureRSA() public method

Create an instance of the RSA crypto provider.
public CryptoProviderSignatureRSA ( int KeySize ) : System
KeySize int Default key size.
return System

CryptoProviderSignatureRSA() public method

Create an instance of the RSA crypto provider with specified default key size and digest algorithm.
public CryptoProviderSignatureRSA ( int KeySize, CryptoAlgorithmID DigestAlgorithm ) : System
KeySize int Default key size.
DigestAlgorithm CryptoAlgorithmID Default digest algorithm.
return System

FindLocal() public method

Locate the private key in the local key store.
public FindLocal ( string UDF ) : bool
UDF string Fingerprint of key to locate.
return bool

Generate() public method

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

Sign() public method

Sign a previously computed digest (requires private key).
public Sign ( CryptoData Data ) : CryptoData
Data CryptoData Computed digest
return CryptoData

Verify() public method

Verify signature.
public Verify ( CryptoData Data, byte Signature ) : bool
Data CryptoData Computed digest
Signature byte Signature
return bool