C# Class RSASample.Program

Afficher le fichier Open project: ProfessionalCSharp/ProfessionalCSharp6 Class Usage Examples

Méthodes publiques

Méthode Description
AliceTasks ( byte &data, byte &hash, byte &signature ) : void
BobTasks ( byte data, byte hash, byte signature ) : void
Run ( ) : void

Private Methods

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

public AliceTasks ( byte &data, byte &hash, byte &signature ) : void
data byte
hash byte
signature byte
Résultat void

BobTasks() public méthode

public BobTasks ( byte data, byte hash, byte signature ) : void
data byte
hash byte
signature byte
Résultat void

Run() public méthode

public Run ( ) : void
Résultat void