C# Class System.Security.Cryptography.ECDsa

Inheritance: AsymmetricAlgorithm
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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

Create() public static méthode

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. ///
Résultat ECDsa

Create() public static méthode

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. ///
Résultat ECDsa

Create() public static méthode

public static Create ( string algorithm ) : ECDsa
algorithm string
Résultat ECDsa

ECDsa() protected méthode

protected ECDsa ( ) : System.IO
Résultat System.IO

ExportExplicitParameters() public méthode

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.
Résultat System.Security.Cryptography.ECParameters

ExportParameters() public méthode

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.
Résultat System.Security.Cryptography.ECParameters

FromXmlString() public méthode

public FromXmlString ( string xmlString ) : void
xmlString string
Résultat void

GenerateKey() public méthode

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.
Résultat void

HashData() protected méthode

protected HashData ( System.Stream data, HashAlgorithmName hashAlgorithm ) : byte[]
data System.Stream
hashAlgorithm HashAlgorithmName
Résultat byte[]

HashData() protected méthode

protected HashData ( byte data, int offset, int count, HashAlgorithmName hashAlgorithm ) : byte[]
data byte
offset int
count int
hashAlgorithm HashAlgorithmName
Résultat byte[]

ImportParameters() public méthode

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.
Résultat void

SignData() public méthode

public SignData ( System.Stream data, HashAlgorithmName hashAlgorithm ) : byte[]
data System.Stream
hashAlgorithm HashAlgorithmName
Résultat byte[]

SignData() public méthode

public SignData ( byte data, HashAlgorithmName hashAlgorithm ) : byte[]
data byte
hashAlgorithm HashAlgorithmName
Résultat byte[]

SignData() public méthode

public SignData ( byte data, int offset, int count, HashAlgorithmName hashAlgorithm ) : byte[]
data byte
offset int
count int
hashAlgorithm HashAlgorithmName
Résultat byte[]

SignHash() public abstract méthode

public abstract SignHash ( byte hash ) : byte[]
hash byte
Résultat byte[]

ToXmlString() public méthode

public ToXmlString ( bool includePrivateParameters ) : string
includePrivateParameters bool
Résultat string

VerifyData() public méthode

public VerifyData ( System.Stream data, byte signature, HashAlgorithmName hashAlgorithm ) : bool
data System.Stream
signature byte
hashAlgorithm HashAlgorithmName
Résultat bool

VerifyData() public méthode

public VerifyData ( byte data, byte signature, HashAlgorithmName hashAlgorithm ) : bool
data byte
signature byte
hashAlgorithm HashAlgorithmName
Résultat bool

VerifyData() public méthode

public VerifyData ( byte data, int offset, int count, byte signature, HashAlgorithmName hashAlgorithm ) : bool
data byte
offset int
count int
signature byte
hashAlgorithm HashAlgorithmName
Résultat bool

VerifyHash() public abstract méthode

public abstract VerifyHash ( byte hash, byte signature ) : bool
hash byte
signature byte
Résultat bool