C# Class ZeroInstall.Store.Trust.GnuPG

Provides access to the signature functions of GnuPG.
This class is immutable and thread-safe.
Inheritance: IOpenPgp
Afficher le fichier Open project: 0install/0install-win

Méthodes publiques

Méthode Description
ExportKey ( IKeyIDContainer keyIDContainer ) : string
GenerateKey ( ) : Process

Launches an interactive process for generating a new keypair.

ImportKey ( byte data ) : void
ListSecretKeys ( ) : IEnumerable
Sign ( byte data, OpenPgpSecretKey secretKey, string passphrase = null ) : byte[]
Verify ( byte data, byte signature ) : IEnumerable

Private Methods

Méthode Description
ParseSecretKey ( string sec, string fpr, string uid ) : OpenPgpSecretKey
ParseSignatureLine ( [ line ) : OpenPgpSignature

Method Details

ExportKey() public méthode

public ExportKey ( IKeyIDContainer keyIDContainer ) : string
keyIDContainer IKeyIDContainer
Résultat string

GenerateKey() public static méthode

Launches an interactive process for generating a new keypair.
The OpenPGP implementation could not be launched.
public static GenerateKey ( ) : Process
Résultat System.Diagnostics.Process

ImportKey() public méthode

public ImportKey ( byte data ) : void
data byte
Résultat void

ListSecretKeys() public méthode

public ListSecretKeys ( ) : IEnumerable
Résultat IEnumerable

Sign() public méthode

public Sign ( byte data, OpenPgpSecretKey secretKey, string passphrase = null ) : byte[]
data byte
secretKey OpenPgpSecretKey
passphrase string
Résultat byte[]

Verify() public méthode

public Verify ( byte data, byte signature ) : IEnumerable
data byte
signature byte
Résultat IEnumerable