C# Class Granados.PKI.DSAKeyPair

Inheritance: KeyPair, ISigner, IVerifier
ファイルを表示 Open project: poderosaproject/poderosa Class Usage Examples

Public Methods

Method Description
DSAKeyPair ( BigInteger p, BigInteger g, BigInteger q, BigInteger y, BigInteger x ) : System
GenerateNew ( int bits, Rng random ) : DSAKeyPair
Sign ( byte data ) : byte[]
Verify ( byte data, byte expecteddata ) : void

Private Methods

Method Description
AsUInt64 ( BigInteger num ) : ulong
findRandomGenerator ( BigInteger order, BigInteger modulo, Rng random ) : BigInteger
findRandomStrongPrime ( int primeBits, int orderBits, Rng random ) : BigInteger[]

Method Details

DSAKeyPair() public method

public DSAKeyPair ( BigInteger p, BigInteger g, BigInteger q, BigInteger y, BigInteger x ) : System
p BigInteger
g BigInteger
q BigInteger
y BigInteger
x BigInteger
return System

GenerateNew() public static method

public static GenerateNew ( int bits, Rng random ) : DSAKeyPair
bits int
random Rng
return DSAKeyPair

Sign() public method

public Sign ( byte data ) : byte[]
data byte
return byte[]

Verify() public method

public Verify ( byte data, byte expecteddata ) : void
data byte
expecteddata byte
return void