C# Class ZeroInstall.Store.Trust.GnuPG

Provides access to the signature functions of GnuPG.
This class is immutable and thread-safe.
Inheritance: IOpenPgp
ファイルを表示 Open project: 0install/0install-win

Public Methods

Method 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

Method Description
ParseSecretKey ( string sec, string fpr, string uid ) : OpenPgpSecretKey
ParseSignatureLine ( [ line ) : OpenPgpSignature

Method Details

ExportKey() public method

public ExportKey ( IKeyIDContainer keyIDContainer ) : string
keyIDContainer IKeyIDContainer
return string

GenerateKey() public static method

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

ImportKey() public method

public ImportKey ( byte data ) : void
data byte
return void

ListSecretKeys() public method

public ListSecretKeys ( ) : IEnumerable
return IEnumerable

Sign() public method

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

Verify() public method

public Verify ( byte data, byte signature ) : IEnumerable
data byte
signature byte
return IEnumerable