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

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

Private Properties

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

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

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

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

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

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

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

Create an instance of the RSA crypto provider from an RSA Key Pair.
public CryptoProviderSignatureRSA ( RSAKeyPair RSAKeyPair ) : System
RSAKeyPair RSAKeyPair The RSA Key Pair
Результат System

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

Create an instance of the RSA crypto provider.
public CryptoProviderSignatureRSA ( int KeySize ) : System
KeySize int Default key size.
Результат System

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

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

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

Locate the private key in the local key store.
public FindLocal ( string UDF ) : bool
UDF string Fingerprint of key to locate.
Результат 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

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

Sign a previously computed digest (requires private key).
public Sign ( CryptoData Data ) : CryptoData
Data CryptoData Computed digest
Результат CryptoData

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

Verify signature.
public Verify ( CryptoData Data, byte Signature ) : bool
Data CryptoData Computed digest
Signature byte Signature
Результат bool