C# Класс System.Security.Cryptography.DSAImplementation.DSACng

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

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

Метод Описание
CreateSignature ( byte rgbHash ) : byte[]
DSACng ( ) : Internal.Cryptography

Create a DSACng algorithm with a random 2048 bit key pair.

DSACng ( int keySize ) : Internal.Cryptography

Creates a new DSACng object that will use a randomly generated key of the specified size. Valid key sizes range from 512 to 3072 bits, in increments of 64. It's suggested that a minimum size of 2048 bits be used for all keys.

VerifySignature ( byte rgbHash, byte rgbSignature ) : bool

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

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

Приватные методы

Метод Описание
AdjustHashSizeIfNecessary ( byte hash ) : byte[]
ComputeQLength ( ) : int
ExportKeyBlob ( bool includePrivateParameters ) : byte[]
ForceSetKeySize ( int newKeySize ) : void
GetDuplicatedKeyHandle ( ) : SafeNCryptKeyHandle
ImportKeyBlob ( byte rsaBlob, bool includePrivate ) : void
Supports2048KeySize ( ) : bool

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

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

public CreateSignature ( byte rgbHash ) : byte[]
rgbHash byte
Результат byte[]

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

Create a DSACng algorithm with a random 2048 bit key pair.
public DSACng ( ) : Internal.Cryptography
Результат Internal.Cryptography

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

Creates a new DSACng object that will use a randomly generated key of the specified size. Valid key sizes range from 512 to 3072 bits, in increments of 64. It's suggested that a minimum size of 2048 bits be used for all keys.
if is not valid
public DSACng ( int keySize ) : Internal.Cryptography
keySize int Size of the key to generate, in bits.
Результат Internal.Cryptography

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

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

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

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

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

public VerifySignature ( byte rgbHash, byte rgbSignature ) : bool
rgbHash byte
rgbSignature byte
Результат bool