C# Class Tempest.RSACrypto

Inheritance: IAsymmetricCrypto
Datei anzeigen Open project: ermau/Tempest Class Usage Examples

Public Methods

Method 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 method

public Decrypt ( byte data ) : byte[]
data byte
return byte[]

Encrypt() public method

public Encrypt ( byte data ) : byte[]
data byte
return byte[]

ExportKey() public method

public ExportKey ( bool includePrivate ) : RSAAsymmetricKey
includePrivate bool
return RSAAsymmetricKey

HashAndSign() public method

public HashAndSign ( string hashAlg, byte data, int offset, int count ) : byte[]
hashAlg string
data byte
offset int
count int
return byte[]

ImportKey() public method

public ImportKey ( RSAAsymmetricKey key ) : void
key RSAAsymmetricKey
return void

RSACrypto() public method

public RSACrypto ( ) : System
return System

RSACrypto() public method

public RSACrypto ( int keySize ) : System
keySize int
return System

VerifySignedHash() public method

public VerifySignedHash ( string hashAlg, byte data, byte signature ) : bool
hashAlg string
data byte
signature byte
return bool