C# Class System.Security.Cryptography.RSACryptoServiceProvider.RSACryptoServiceProvider

Inheritance: RSA
ファイルを表示 Open project: runefs/Marvin Class Usage Examples

Private Properties

Property Type Description
Common void
ExportCspBlob byte[]
GetHash HashAlgorithm
GetHashNameFromOID string
ImportCspBlob void
OnKeyGenerated void

Public Methods

Method Description
Decrypt ( byte rgb, bool fOAEP ) : byte[]
DecryptValue ( byte rgb ) : byte[]
Encrypt ( byte rgb, bool fOAEP ) : byte[]
EncryptValue ( byte rgb ) : byte[]
ExportParameters ( bool includePrivateParameters ) : RSAParameters
ImportParameters ( RSAParameters parameters ) : void
RSACryptoServiceProvider ( ) : System.IO
RSACryptoServiceProvider ( CspParameters parameters ) : System.IO
RSACryptoServiceProvider ( int dwKeySize ) : System.IO
RSACryptoServiceProvider ( int dwKeySize, CspParameters parameters ) : System.IO
SignData ( Stream inputStream, object halg ) : byte[]
SignData ( byte buffer, int offset, int count, object halg ) : byte[]
SignData ( byte buffer, object halg ) : byte[]
SignHash ( byte rgbHash, string str ) : byte[]
VerifyData ( byte buffer, object halg, byte signature ) : bool
VerifyHash ( byte rgbHash, string str, byte rgbSignature ) : bool

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
Common ( int dwKeySize, CspParameters p ) : void
ExportCspBlob ( bool includePrivateParameters ) : byte[]
GetHash ( object halg ) : HashAlgorithm
GetHashNameFromOID ( string oid ) : string
ImportCspBlob ( byte keyBlob ) : void
OnKeyGenerated ( object sender, EventArgs e ) : void

Method Details

Decrypt() public method

public Decrypt ( byte rgb, bool fOAEP ) : byte[]
rgb byte
fOAEP bool
return byte[]

DecryptValue() public method

public DecryptValue ( byte rgb ) : byte[]
rgb byte
return byte[]

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Encrypt() public method

public Encrypt ( byte rgb, bool fOAEP ) : byte[]
rgb byte
fOAEP bool
return byte[]

EncryptValue() public method

public EncryptValue ( byte rgb ) : byte[]
rgb byte
return byte[]

ExportParameters() public method

public ExportParameters ( bool includePrivateParameters ) : RSAParameters
includePrivateParameters bool
return RSAParameters

ImportParameters() public method

public ImportParameters ( RSAParameters parameters ) : void
parameters RSAParameters
return void

RSACryptoServiceProvider() public method

public RSACryptoServiceProvider ( ) : System.IO
return System.IO

RSACryptoServiceProvider() public method

public RSACryptoServiceProvider ( CspParameters parameters ) : System.IO
parameters CspParameters
return System.IO

RSACryptoServiceProvider() public method

public RSACryptoServiceProvider ( int dwKeySize ) : System.IO
dwKeySize int
return System.IO

RSACryptoServiceProvider() public method

public RSACryptoServiceProvider ( int dwKeySize, CspParameters parameters ) : System.IO
dwKeySize int
parameters CspParameters
return System.IO

SignData() public method

public SignData ( Stream inputStream, object halg ) : byte[]
inputStream System.IO.Stream
halg object
return byte[]

SignData() public method

public SignData ( byte buffer, int offset, int count, object halg ) : byte[]
buffer byte
offset int
count int
halg object
return byte[]

SignData() public method

public SignData ( byte buffer, object halg ) : byte[]
buffer byte
halg object
return byte[]

SignHash() public method

public SignHash ( byte rgbHash, string str ) : byte[]
rgbHash byte
str string
return byte[]

VerifyData() public method

public VerifyData ( byte buffer, object halg, byte signature ) : bool
buffer byte
halg object
signature byte
return bool

VerifyHash() public method

public VerifyHash ( byte rgbHash, string str, byte rgbSignature ) : bool
rgbHash byte
str string
rgbSignature byte
return bool