C# Class Tempest.RSACrypto

Inheritance: IAsymmetricCrypto
Afficher le fichier Open project: ermau/Tempest Class Usage Examples

Méthodes publiques

Méthode Description
Decrypt ( byte data ) : byte[]
Encrypt ( byte data ) : byte[]
ExportKey ( bool includePrivate ) : RSAAsymmetricKey
HashAndSign ( string hashAlg, byte data, int offset, int count ) : byte[]
ImportKey ( RSAAsymmetricKey key ) : void
RSACrypto ( ) : System
RSACrypto ( int keySize ) : System
VerifySignedHash ( string hashAlg, byte data, byte signature ) : bool

Method Details

Decrypt() public méthode

public Decrypt ( byte data ) : byte[]
data byte
Résultat byte[]

Encrypt() public méthode

public Encrypt ( byte data ) : byte[]
data byte
Résultat byte[]

ExportKey() public méthode

public ExportKey ( bool includePrivate ) : RSAAsymmetricKey
includePrivate bool
Résultat RSAAsymmetricKey

HashAndSign() public méthode

public HashAndSign ( string hashAlg, byte data, int offset, int count ) : byte[]
hashAlg string
data byte
offset int
count int
Résultat byte[]

ImportKey() public méthode

public ImportKey ( RSAAsymmetricKey key ) : void
key RSAAsymmetricKey
Résultat void

RSACrypto() public méthode

public RSACrypto ( ) : System
Résultat System

RSACrypto() public méthode

public RSACrypto ( int keySize ) : System
keySize int
Résultat System

VerifySignedHash() public méthode

public VerifySignedHash ( string hashAlg, byte data, byte signature ) : bool
hashAlg string
data byte
signature byte
Résultat bool