C# Class System.Security.Cryptography.ECDsa

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

Public Methods

Method Description
Create ( ) : ECDsa

Creates an instance of the platform specific implementation of the cref="ECDsa" algorithm.

Create ( System.Security.Cryptography.ECCurve curve ) : ECDsa

Creates an instance of the platform specific implementation of the cref="ECDsa" algorithm.

Create ( System.Security.Cryptography.ECParameters parameters ) : ECDsa

Creates an instance of the platform specific implementation of the cref="ECDsa" algorithm.

Create ( string algorithm ) : ECDsa
ExportExplicitParameters ( bool includePrivateParameters ) : System.Security.Cryptography.ECParameters

When overridden in a derived class, exports the explicit ECParameters for an ECCurve.

ExportParameters ( bool includePrivateParameters ) : System.Security.Cryptography.ECParameters

When overridden in a derived class, exports the named or explicit ECParameters for an ECCurve. If the curve has a name, the Curve property will contain named curve parameters otherwise it will contain explicit parameters.

FromXmlString ( string xmlString ) : void
GenerateKey ( System.Security.Cryptography.ECCurve curve ) : void

When overridden in a derived class, generates a new public/private keypair for the specified curve.

ImportParameters ( System.Security.Cryptography.ECParameters parameters ) : void

When overridden in a derived class, imports the specified ECParameters.

SignData ( System.Stream data, HashAlgorithmName hashAlgorithm ) : byte[]
SignData ( byte data, HashAlgorithmName hashAlgorithm ) : byte[]
SignData ( byte data, int offset, int count, HashAlgorithmName hashAlgorithm ) : byte[]
SignHash ( byte hash ) : byte[]
ToXmlString ( bool includePrivateParameters ) : string
VerifyData ( System.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
VerifyHash ( byte hash, byte signature ) : bool

Protected Methods

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

Method Details

Create() public static method

Creates an instance of the platform specific implementation of the cref="ECDsa" algorithm.
public static Create ( ) : ECDsa
return ECDsa

Create() public static method

Creates an instance of the platform specific implementation of the cref="ECDsa" algorithm.
public static Create ( System.Security.Cryptography.ECCurve curve ) : ECDsa
curve System.Security.Cryptography.ECCurve /// The representing the elliptic curve. ///
return ECDsa

Create() public static method

Creates an instance of the platform specific implementation of the cref="ECDsa" algorithm.
public static Create ( System.Security.Cryptography.ECParameters parameters ) : ECDsa
parameters System.Security.Cryptography.ECParameters /// The representing the elliptic curve parameters. ///
return ECDsa

Create() public static method

public static Create ( string algorithm ) : ECDsa
algorithm string
return ECDsa

ECDsa() protected method

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

ExportExplicitParameters() public method

When overridden in a derived class, exports the explicit ECParameters for an ECCurve.
public ExportExplicitParameters ( bool includePrivateParameters ) : System.Security.Cryptography.ECParameters
includePrivateParameters bool true to include private parameters, otherwise, false.
return System.Security.Cryptography.ECParameters

ExportParameters() public method

When overridden in a derived class, exports the named or explicit ECParameters for an ECCurve. If the curve has a name, the Curve property will contain named curve parameters otherwise it will contain explicit parameters.
public ExportParameters ( bool includePrivateParameters ) : System.Security.Cryptography.ECParameters
includePrivateParameters bool true to include private parameters, otherwise, false.
return System.Security.Cryptography.ECParameters

FromXmlString() public method

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

GenerateKey() public method

When overridden in a derived class, generates a new public/private keypair for the specified curve.
public GenerateKey ( System.Security.Cryptography.ECCurve curve ) : void
curve System.Security.Cryptography.ECCurve The curve to use.
return void

HashData() protected method

protected HashData ( System.Stream data, HashAlgorithmName hashAlgorithm ) : byte[]
data System.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 method

When overridden in a derived class, imports the specified ECParameters.
public ImportParameters ( System.Security.Cryptography.ECParameters parameters ) : void
parameters System.Security.Cryptography.ECParameters The curve parameters.
return void

SignData() public method

public SignData ( System.Stream data, HashAlgorithmName hashAlgorithm ) : byte[]
data System.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[]

SignHash() public abstract method

public abstract SignHash ( byte hash ) : byte[]
hash byte
return byte[]

ToXmlString() public method

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

VerifyData() public method

public VerifyData ( System.Stream data, byte signature, HashAlgorithmName hashAlgorithm ) : bool
data System.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

VerifyHash() public abstract method

public abstract VerifyHash ( byte hash, byte signature ) : bool
hash byte
signature byte
return bool