C# 클래스 System.Security.Cryptography.DSAImplementation.DSACng

상속: DSA
파일 보기 프로젝트 열기: dotnet/corefx

공개 메소드들

메소드 설명
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