C# Class Granados.PKI.RSAUtil

Exibir arquivo Open project: poderosaproject/poderosa Class Usage Examples

Public Methods

Method Description
PKCS1PadType1 ( byte input, int len ) : BigInteger

Make encoded message (EM) as described in PKCS#1

PKCS1PadType2 ( byte input, int len, Rng rng ) : BigInteger

Make encoded message (EM) as described in PKCS#1

StripPKCS1Pad ( BigInteger input, int type ) : BigInteger

Extract an message from the encoded message (EM) described in PKCS#1

Method Details

PKCS1PadType1() public static method

Make encoded message (EM) as described in PKCS#1
public static PKCS1PadType1 ( byte input, int len ) : BigInteger
input byte input bytes
len int total byte length of the result
return BigInteger

PKCS1PadType2() public static method

Make encoded message (EM) as described in PKCS#1
public static PKCS1PadType2 ( byte input, int len, Rng rng ) : BigInteger
input byte input bytes
len int total byte length of the result
rng Rng random number generator
return BigInteger

StripPKCS1Pad() public static method

Extract an message from the encoded message (EM) described in PKCS#1
public static StripPKCS1Pad ( BigInteger input, int type ) : BigInteger
input BigInteger encoded message bits
type int type number (1 or 2)
return BigInteger