C# Class Granados.PKI.RSAKeyPair

Inheritance: KeyPair, ISigner, IVerifier
Show file Open project: poderosaproject/poderosa Class Usage Examples

Public Methods

Method Description
GenerateNew ( int bits, Rng rnd ) : RSAKeyPair
RSAKeyPair ( BigInteger e, BigInteger d, BigInteger n, BigInteger u, BigInteger p, BigInteger q ) : System
Sign ( byte data ) : byte[]
SignWithSHA1 ( byte data ) : byte[]
ToRSAParameters ( ) : RSAParameters
Verify ( byte data, byte expected ) : void

Private Methods

Method Description
PrimeExponent ( BigInteger privateExponent, BigInteger prime ) : BigInteger
SignCore ( BigInteger input, BigInteger pe, BigInteger qe ) : BigInteger

Method Details

GenerateNew() public static method

public static GenerateNew ( int bits, Rng rnd ) : RSAKeyPair
bits int
rnd Rng
return RSAKeyPair

RSAKeyPair() public method

public RSAKeyPair ( BigInteger e, BigInteger d, BigInteger n, BigInteger u, BigInteger p, BigInteger q ) : System
e BigInteger
d BigInteger
n BigInteger
u BigInteger
p BigInteger
q BigInteger
return System

Sign() public method

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

SignWithSHA1() public method

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

ToRSAParameters() public method

public ToRSAParameters ( ) : RSAParameters
return System.Security.Cryptography.RSAParameters

Verify() public method

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