C# Class ServiceStack.PlatformRsaUtils

Exibir arquivo Open project: ServiceStack/ServiceStack

Public Methods

Method Description
Decrypt ( this rsa, byte bytes ) : byte[]
Encrypt ( this rsa, byte bytes ) : byte[]
ExportToXml ( RSAParameters csp, bool includePrivateParameters ) : string
ExtractFromXml ( string xml ) : RSAParameters
FromXmlString ( this rsa, string xml ) : void
SignData ( this rsa, byte bytes, string hashAlgorithm ) : byte[]
ToHashAlgorithmName ( string hashAlgorithm ) : HashAlgorithmName
ToXmlString ( this rsa, bool includePrivateParameters ) : string
VerifyData ( this rsa, byte bytes, byte signature, string hashAlgorithm ) : bool

Method Details

Decrypt() public static method

public static Decrypt ( this rsa, byte bytes ) : byte[]
rsa this
bytes byte
return byte[]

Encrypt() public static method

public static Encrypt ( this rsa, byte bytes ) : byte[]
rsa this
bytes byte
return byte[]

ExportToXml() public static method

public static ExportToXml ( RSAParameters csp, bool includePrivateParameters ) : string
csp RSAParameters
includePrivateParameters bool
return string

ExtractFromXml() public static method

public static ExtractFromXml ( string xml ) : RSAParameters
xml string
return RSAParameters

FromXmlString() public static method

public static FromXmlString ( this rsa, string xml ) : void
rsa this
xml string
return void

SignData() public static method

public static SignData ( this rsa, byte bytes, string hashAlgorithm ) : byte[]
rsa this
bytes byte
hashAlgorithm string
return byte[]

ToHashAlgorithmName() public static method

public static ToHashAlgorithmName ( string hashAlgorithm ) : HashAlgorithmName
hashAlgorithm string
return HashAlgorithmName

ToXmlString() public static method

public static ToXmlString ( this rsa, bool includePrivateParameters ) : string
rsa this
includePrivateParameters bool
return string

VerifyData() public static method

public static VerifyData ( this rsa, byte bytes, byte signature, string hashAlgorithm ) : bool
rsa this
bytes byte
signature byte
hashAlgorithm string
return bool