C# Class System.Security.Cryptography.DSA

Inheritance: AsymmetricAlgorithm
Datei anzeigen Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
Create ( ) : DSA
Create ( string algName ) : DSA
CreateSignature ( byte rgbHash ) : byte[]
ExportParameters ( bool includePrivateParameters ) : DSAParameters
FromXmlString ( string xmlString ) : void
ImportParameters ( DSAParameters parameters ) : void
SignData ( Stream data, HashAlgorithmName hashAlgorithm ) : byte[]
SignData ( byte data, HashAlgorithmName hashAlgorithm ) : byte[]
SignData ( byte data, int offset, int count, HashAlgorithmName hashAlgorithm ) : byte[]
ToXmlString ( bool includePrivateParameters ) : String
VerifyData ( Stream data, byte signature, HashAlgorithmName hashAlgorithm ) : bool
VerifyData ( byte data, byte signature, HashAlgorithmName hashAlgorithm ) : bool
VerifyData ( byte data, int offset, int count, byte signature, HashAlgorithmName hashAlgorithm ) : bool
VerifySignature ( byte rgbHash, byte rgbSignature ) : bool

Protected Methods

Method Description
DSA ( ) : System.IO
HashData ( Stream data, HashAlgorithmName hashAlgorithm ) : byte[]
HashData ( byte data, int offset, int count, HashAlgorithmName hashAlgorithm ) : byte[]

Private Methods

Method Description
DerivedClassMustOverride ( ) : Exception
HashAlgorithmNameNullOrEmpty ( ) : Exception

Method Details

Create() public static method

public static Create ( ) : DSA
return DSA

Create() public static method

public static Create ( string algName ) : DSA
algName string
return DSA

CreateSignature() abstract public method

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

DSA() protected method

protected DSA ( ) : System.IO
return System.IO

ExportParameters() public abstract method

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

FromXmlString() public method

public FromXmlString ( string xmlString ) : void
xmlString string
return void

HashData() protected method

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

HashData() protected method

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

ImportParameters() public abstract method

public abstract ImportParameters ( DSAParameters parameters ) : void
parameters DSAParameters
return void

SignData() public method

public SignData ( Stream data, HashAlgorithmName hashAlgorithm ) : byte[]
data System.IO.Stream
hashAlgorithm HashAlgorithmName
return byte[]

SignData() public method

public SignData ( byte data, HashAlgorithmName hashAlgorithm ) : byte[]
data byte
hashAlgorithm HashAlgorithmName
return byte[]

SignData() public method

public SignData ( byte data, int offset, int count, HashAlgorithmName hashAlgorithm ) : byte[]
data byte
offset int
count int
hashAlgorithm HashAlgorithmName
return byte[]

ToXmlString() public method

public ToXmlString ( bool includePrivateParameters ) : String
includePrivateParameters bool
return String

VerifyData() public method

public VerifyData ( Stream data, byte signature, HashAlgorithmName hashAlgorithm ) : bool
data System.IO.Stream
signature byte
hashAlgorithm HashAlgorithmName
return bool

VerifyData() public method

public VerifyData ( byte data, byte signature, HashAlgorithmName hashAlgorithm ) : bool
data byte
signature byte
hashAlgorithm HashAlgorithmName
return bool

VerifyData() public method

public VerifyData ( byte data, int offset, int count, byte signature, HashAlgorithmName hashAlgorithm ) : bool
data byte
offset int
count int
signature byte
hashAlgorithm HashAlgorithmName
return bool

VerifySignature() abstract public method

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