C# Class Mono.Security.Cryptography.PKCS8.PrivateKeyInfo

Mostra file Open project: runefs/Marvin Class Usage Examples

Public Methods

Method Description
DecodeDSA ( byte privateKey, DSAParameters dsaParameters ) : DSA
DecodeRSA ( byte keypair ) : RSA
Encode ( AsymmetricAlgorithm aa ) : byte[]
Encode ( DSA dsa ) : byte[]
Encode ( RSA rsa ) : byte[]
GetBytes ( ) : byte[]
PrivateKeyInfo ( ) : System
PrivateKeyInfo ( byte data ) : System

Private Methods

Method Description
Decode ( byte data ) : void
Normalize ( byte bigInt, int length ) : byte[]
RemoveLeadingZero ( byte bigInt ) : byte[]

Method Details

DecodeDSA() static public method

static public DecodeDSA ( byte privateKey, DSAParameters dsaParameters ) : DSA
privateKey byte
dsaParameters System.Security.Cryptography.DSAParameters
return System.Security.Cryptography.DSA

DecodeRSA() static public method

static public DecodeRSA ( byte keypair ) : RSA
keypair byte
return System.Security.Cryptography.RSA

Encode() static public method

static public Encode ( AsymmetricAlgorithm aa ) : byte[]
aa System.Security.Cryptography.AsymmetricAlgorithm
return byte[]

Encode() static public method

static public Encode ( DSA dsa ) : byte[]
dsa System.Security.Cryptography.DSA
return byte[]

Encode() static public method

static public Encode ( RSA rsa ) : byte[]
rsa System.Security.Cryptography.RSA
return byte[]

GetBytes() public method

public GetBytes ( ) : byte[]
return byte[]

PrivateKeyInfo() public method

public PrivateKeyInfo ( ) : System
return System

PrivateKeyInfo() public method

public PrivateKeyInfo ( byte data ) : System
data byte
return System