C# Class System.Security.Cryptography.DSAImplementation.DSAOpenSsl

Inheritance: DSA
Datei anzeigen Open project: dotnet/corefx

Public Methods

Method Description
CreateSignature ( byte rgbHash ) : byte[]
DSAOpenSsl ( ) : Internal.Cryptography
DSAOpenSsl ( int keySize ) : Internal.Cryptography
ExportParameters ( bool includePrivateParameters ) : DSAParameters
ImportParameters ( DSAParameters parameters ) : void
VerifySignature ( byte rgbHash, byte rgbSignature ) : 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
CheckInvalidKey ( Microsoft.Win32.SafeHandles.SafeDsaHandle key ) : void
ForceSetKeySize ( int newKeySize ) : void
FreeKey ( ) : void
GenerateKey ( ) : Microsoft.Win32.SafeHandles.SafeDsaHandle
SetKey ( Microsoft.Win32.SafeHandles.SafeDsaHandle newKey ) : void

Method Details

CreateSignature() public method

public CreateSignature ( byte rgbHash ) : byte[]
rgbHash byte
return byte[]

DSAOpenSsl() public method

public DSAOpenSsl ( ) : Internal.Cryptography
return Internal.Cryptography

DSAOpenSsl() public method

public DSAOpenSsl ( int keySize ) : Internal.Cryptography
keySize int
return Internal.Cryptography

Dispose() protected method

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

ExportParameters() public method

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

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 ( DSAParameters parameters ) : void
parameters DSAParameters
return void

VerifySignature() public method

public VerifySignature ( byte rgbHash, byte rgbSignature ) : bool
rgbHash byte
rgbSignature byte
return bool