C# Class RSASample.Program

Exibir arquivo Open project: ProfessionalCSharp/ProfessionalCSharp6 Class Usage Examples

Public Methods

Method Description
AliceTasks ( byte &data, byte &hash, byte &signature ) : void
BobTasks ( byte data, byte hash, byte signature ) : void
Run ( ) : void

Private Methods

Method Description
AddSignatureToHash ( byte hash, System.Security.Cryptography.CngKey key ) : byte[]
HashDocument ( byte data ) : byte[]
InitAliceKeys ( ) : void
IsDocumentUnchanged ( byte hash, byte data ) : bool
IsSignatureValid ( byte hash, byte signature, System.Security.Cryptography.CngKey key ) : bool
Main ( ) : void

Method Details

AliceTasks() public method

public AliceTasks ( byte &data, byte &hash, byte &signature ) : void
data byte
hash byte
signature byte
return void

BobTasks() public method

public BobTasks ( byte data, byte hash, byte signature ) : void
data byte
hash byte
signature byte
return void

Run() public method

public Run ( ) : void
return void