C# Класс System.Security.Cryptography.ECDsa

Наследование: AsymmetricAlgorithm
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
ECDsa ( ) : System.IO
HashData ( System.Stream data, HashAlgorithmName hashAlgorithm ) : byte[]
HashData ( byte data, int offset, int count, HashAlgorithmName hashAlgorithm ) : byte[]

Описание методов

Create() публичный статический Метод

Creates an instance of the platform specific implementation of the cref="ECDsa" algorithm.
public static Create ( ) : ECDsa
Результат ECDsa

Create() публичный статический Метод

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. ///
Результат ECDsa

Create() публичный статический Метод

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. ///
Результат ECDsa

Create() публичный статический Метод

public static Create ( string algorithm ) : ECDsa
algorithm string
Результат ECDsa

ECDsa() защищенный Метод

protected ECDsa ( ) : System.IO
Результат System.IO

ExportExplicitParameters() публичный Метод

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.
Результат System.Security.Cryptography.ECParameters

ExportParameters() публичный Метод

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.
Результат System.Security.Cryptography.ECParameters

FromXmlString() публичный Метод

public FromXmlString ( string xmlString ) : void
xmlString string
Результат void

GenerateKey() публичный Метод

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.
Результат void

HashData() защищенный Метод

protected HashData ( System.Stream data, HashAlgorithmName hashAlgorithm ) : byte[]
data System.Stream
hashAlgorithm HashAlgorithmName
Результат byte[]

HashData() защищенный Метод

protected HashData ( byte data, int offset, int count, HashAlgorithmName hashAlgorithm ) : byte[]
data byte
offset int
count int
hashAlgorithm HashAlgorithmName
Результат byte[]

ImportParameters() публичный Метод

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.
Результат void

SignData() публичный Метод

public SignData ( System.Stream data, HashAlgorithmName hashAlgorithm ) : byte[]
data System.Stream
hashAlgorithm HashAlgorithmName
Результат byte[]

SignData() публичный Метод

public SignData ( byte data, HashAlgorithmName hashAlgorithm ) : byte[]
data byte
hashAlgorithm HashAlgorithmName
Результат byte[]

SignData() публичный Метод

public SignData ( byte data, int offset, int count, HashAlgorithmName hashAlgorithm ) : byte[]
data byte
offset int
count int
hashAlgorithm HashAlgorithmName
Результат byte[]

SignHash() публичный абстрактный Метод

public abstract SignHash ( byte hash ) : byte[]
hash byte
Результат byte[]

ToXmlString() публичный Метод

public ToXmlString ( bool includePrivateParameters ) : string
includePrivateParameters bool
Результат string

VerifyData() публичный Метод

public VerifyData ( System.Stream data, byte signature, HashAlgorithmName hashAlgorithm ) : bool
data System.Stream
signature byte
hashAlgorithm HashAlgorithmName
Результат bool

VerifyData() публичный Метод

public VerifyData ( byte data, byte signature, HashAlgorithmName hashAlgorithm ) : bool
data byte
signature byte
hashAlgorithm HashAlgorithmName
Результат bool

VerifyData() публичный Метод

public VerifyData ( byte data, int offset, int count, byte signature, HashAlgorithmName hashAlgorithm ) : bool
data byte
offset int
count int
signature byte
hashAlgorithm HashAlgorithmName
Результат bool

VerifyHash() публичный абстрактный Метод

public abstract VerifyHash ( byte hash, byte signature ) : bool
hash byte
signature byte
Результат bool