C# Class System.Security.Cryptography.RSAImplementation.RSAOpenSsl

Inheritance: RSA
Datei anzeigen Open project: dotnet/corefx

Public Methods

Method Description
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

Protected Methods

Method Description
Dispose ( bool disposing ) : void
HashData ( Stream data, Internal.Cryptography.HashAlgorithmName hashAlgorithm ) : byte[]
HashData ( byte data, int offset, int count, Internal.Cryptography.HashAlgorithmName hashAlgorithm ) : byte[]

Private Methods

Method Description
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

Method Details

Decrypt() public method

public Decrypt ( byte data, RSAEncryptionPadding padding ) : byte[]
data byte
padding RSAEncryptionPadding
return byte[]

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Encrypt() public method

public Encrypt ( byte data, RSAEncryptionPadding padding ) : byte[]
data byte
padding RSAEncryptionPadding
return byte[]

ExportParameters() public method

public ExportParameters ( bool includePrivateParameters ) : RSAParameters
includePrivateParameters bool
return RSAParameters

HashData() protected method

protected HashData ( Stream data, Internal.Cryptography.HashAlgorithmName hashAlgorithm ) : byte[]
data System.IO.Stream
hashAlgorithm Internal.Cryptography.HashAlgorithmName
return byte[]

HashData() protected method

protected HashData ( byte data, int offset, int count, Internal.Cryptography.HashAlgorithmName hashAlgorithm ) : byte[]
data byte
offset int
count int
hashAlgorithm Internal.Cryptography.HashAlgorithmName
return byte[]

ImportParameters() public method

public ImportParameters ( RSAParameters parameters ) : void
parameters RSAParameters
return void

RSAOpenSsl() public method

public RSAOpenSsl ( ) : System.Diagnostics
return System.Diagnostics

RSAOpenSsl() public method

public RSAOpenSsl ( int keySize ) : System.Diagnostics
keySize int
return System.Diagnostics

SignHash() public method

public SignHash ( byte hash, Internal.Cryptography.HashAlgorithmName hashAlgorithm, RSASignaturePadding padding ) : byte[]
hash byte
hashAlgorithm Internal.Cryptography.HashAlgorithmName
padding RSASignaturePadding
return byte[]

VerifyHash() public method

public VerifyHash ( byte hash, byte signature, Internal.Cryptography.HashAlgorithmName hashAlgorithm, RSASignaturePadding padding ) : bool
hash byte
signature byte
hashAlgorithm Internal.Cryptography.HashAlgorithmName
padding RSASignaturePadding
return bool