C# Class HermaFx.Cryptography.PKCS8.PrivateKeyInfo

Show file Open project: evicertia/HermaFx 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() public static method

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

DecodeRSA() public static method

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

Encode() public static method

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

Encode() public static method

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

Encode() public static method

public static 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