C# Класс System.Security.Cryptography.RSAImplementation.RSAOpenSsl

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

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

Метод Описание
Decrypt ( byte data, RSAEncryptionPadding padding ) : byte[]
Encrypt ( byte data, RSAEncryptionPadding padding ) : byte[]
ExportParameters ( bool includePrivateParameters ) : RSAParameters
ImportParameters ( RSAParameters parameters ) : void
RSAOpenSsl ( ) : System.Diagnostics
RSAOpenSsl ( int keySize ) : System.Diagnostics
SignHash ( byte hash, Internal.Cryptography.HashAlgorithmName hashAlgorithm, RSASignaturePadding padding ) : byte[]
VerifyHash ( byte hash, byte signature, Internal.Cryptography.HashAlgorithmName hashAlgorithm, RSASignaturePadding padding ) : bool

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void
HashData ( Stream data, Internal.Cryptography.HashAlgorithmName hashAlgorithm ) : byte[]
HashData ( byte data, int offset, int count, Internal.Cryptography.HashAlgorithmName hashAlgorithm ) : byte[]

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

Метод Описание
CheckBoolReturn ( int returnValue ) : void
CheckInvalidKey ( Microsoft.Win32.SafeHandles.SafeRsaHandle key ) : void
CheckReturn ( int returnValue ) : void
ForceSetKeySize ( int newKeySize ) : void
FreeKey ( ) : void
GenerateKey ( ) : Microsoft.Win32.SafeHandles.SafeRsaHandle
GetAlgorithmNid ( Internal.Cryptography.HashAlgorithmName hashAlgorithmName ) : int
GetInteropPadding ( RSAEncryptionPadding padding ) : Interop.Crypto.RsaPadding
HasConsistentPrivateKey ( RSAParameters &parameters ) : bool
HashAlgorithmNameNullOrEmpty ( ) : Exception
PaddingModeNotSupported ( ) : Exception
SignHash ( byte hash, Internal.Cryptography.HashAlgorithmName hashAlgorithmName ) : byte[]
ValidateParameters ( RSAParameters &parameters ) : void
VerifyHash ( byte hash, byte signature, Internal.Cryptography.HashAlgorithmName hashAlgorithmName ) : bool

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

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

public Decrypt ( byte data, RSAEncryptionPadding padding ) : byte[]
data byte
padding RSAEncryptionPadding
Результат byte[]

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

public Encrypt ( byte data, RSAEncryptionPadding padding ) : byte[]
data byte
padding RSAEncryptionPadding
Результат byte[]

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

public ExportParameters ( bool includePrivateParameters ) : RSAParameters
includePrivateParameters bool
Результат RSAParameters

HashData() защищенный Метод

protected HashData ( Stream data, Internal.Cryptography.HashAlgorithmName hashAlgorithm ) : byte[]
data System.IO.Stream
hashAlgorithm Internal.Cryptography.HashAlgorithmName
Результат byte[]

HashData() защищенный Метод

protected HashData ( byte data, int offset, int count, Internal.Cryptography.HashAlgorithmName hashAlgorithm ) : byte[]
data byte
offset int
count int
hashAlgorithm Internal.Cryptography.HashAlgorithmName
Результат byte[]

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

public ImportParameters ( RSAParameters parameters ) : void
parameters RSAParameters
Результат void

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

public RSAOpenSsl ( ) : System.Diagnostics
Результат System.Diagnostics

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

public RSAOpenSsl ( int keySize ) : System.Diagnostics
keySize int
Результат System.Diagnostics

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

public SignHash ( byte hash, Internal.Cryptography.HashAlgorithmName hashAlgorithm, RSASignaturePadding padding ) : byte[]
hash byte
hashAlgorithm Internal.Cryptography.HashAlgorithmName
padding RSASignaturePadding
Результат byte[]

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

public VerifyHash ( byte hash, byte signature, Internal.Cryptography.HashAlgorithmName hashAlgorithm, RSASignaturePadding padding ) : bool
hash byte
signature byte
hashAlgorithm Internal.Cryptography.HashAlgorithmName
padding RSASignaturePadding
Результат bool