C# Class Por.Core.Utilities.RSAOperations

显示文件 Open project: neoeinstein/purpleonion

Public Methods

Method Description
FromOpenSslFile ( string file ) : RSA
FromOpenSslString ( string key ) : RSA
ToAsn1 ( RSA rsa ) : Mono.Security.ASN1
ToAsn1Key ( RSA rsa ) : Mono.Security.ASN1
ToOpenSslFile ( RSA rsa, string filename ) : void
ToOpenSslString ( RSA rsa ) : string

Private Methods

Method Description
EnsureNotNull ( object obj, string argName ) : void

Method Details

FromOpenSslFile() public static method

public static FromOpenSslFile ( string file ) : RSA
file string
return System.Security.Cryptography.RSA

FromOpenSslString() public static method

public static FromOpenSslString ( string key ) : RSA
key string
return System.Security.Cryptography.RSA

ToAsn1() public static method

public static ToAsn1 ( RSA rsa ) : Mono.Security.ASN1
rsa System.Security.Cryptography.RSA
return Mono.Security.ASN1

ToAsn1Key() public static method

public static ToAsn1Key ( RSA rsa ) : Mono.Security.ASN1
rsa System.Security.Cryptography.RSA
return Mono.Security.ASN1

ToOpenSslFile() public static method

public static ToOpenSslFile ( RSA rsa, string filename ) : void
rsa System.Security.Cryptography.RSA
filename string
return void

ToOpenSslString() public static method

public static ToOpenSslString ( RSA rsa ) : string
rsa System.Security.Cryptography.RSA
return string