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

Inheritance: RSA
Afficher le fichier Open project: runefs/Marvin Class Usage Examples

Private Properties

Свойство Type Description
Common void
ExportCspBlob byte[]
GetHash HashAlgorithm
GetHashNameFromOID string
ImportCspBlob void
OnKeyGenerated void

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode 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 méthode

public Decrypt ( byte rgb, bool fOAEP ) : byte[]
rgb byte
fOAEP bool
Résultat byte[]

DecryptValue() public méthode

public DecryptValue ( byte rgb ) : byte[]
rgb byte
Résultat byte[]

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Encrypt() public méthode

public Encrypt ( byte rgb, bool fOAEP ) : byte[]
rgb byte
fOAEP bool
Résultat byte[]

EncryptValue() public méthode

public EncryptValue ( byte rgb ) : byte[]
rgb byte
Résultat byte[]

ExportParameters() public méthode

public ExportParameters ( bool includePrivateParameters ) : RSAParameters
includePrivateParameters bool
Résultat RSAParameters

ImportParameters() public méthode

public ImportParameters ( RSAParameters parameters ) : void
parameters RSAParameters
Résultat void

RSACryptoServiceProvider() public méthode

public RSACryptoServiceProvider ( ) : System.IO
Résultat System.IO

RSACryptoServiceProvider() public méthode

public RSACryptoServiceProvider ( CspParameters parameters ) : System.IO
parameters CspParameters
Résultat System.IO

RSACryptoServiceProvider() public méthode

public RSACryptoServiceProvider ( int dwKeySize ) : System.IO
dwKeySize int
Résultat System.IO

RSACryptoServiceProvider() public méthode

public RSACryptoServiceProvider ( int dwKeySize, CspParameters parameters ) : System.IO
dwKeySize int
parameters CspParameters
Résultat System.IO

SignData() public méthode

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

SignData() public méthode

public SignData ( byte buffer, int offset, int count, object halg ) : byte[]
buffer byte
offset int
count int
halg object
Résultat byte[]

SignData() public méthode

public SignData ( byte buffer, object halg ) : byte[]
buffer byte
halg object
Résultat byte[]

SignHash() public méthode

public SignHash ( byte rgbHash, string str ) : byte[]
rgbHash byte
str string
Résultat byte[]

VerifyData() public méthode

public VerifyData ( byte buffer, object halg, byte signature ) : bool
buffer byte
halg object
signature byte
Résultat bool

VerifyHash() public méthode

public VerifyHash ( byte rgbHash, string str, byte rgbSignature ) : bool
rgbHash byte
str string
rgbSignature byte
Résultat bool