Zero Install .NET API 2.20.0
ZeroInstall.Store.Trust.GnuPG Class Reference

Provides access to the signature functions of GnuPG. More...

Inheritance diagram for ZeroInstall.Store.Trust.GnuPG:
ZeroInstall.Store.Trust.IOpenPgp

Public Member Functions

 GnuPG (string homeDir)
 Creates a new GnuPG instance. More...
 
IEnumerable< OpenPgpSignatureVerify (ArraySegment< byte > data, byte[] signature)
 Verifies a detached OpenPGP signature. More...
 
byte[] Sign (ArraySegment< byte > data, OpenPgpSecretKey secretKey, string? passphrase=null)
 Creates a detached OpenPGP signature using a specific secret key. More...
 
void ImportKey (ArraySegment< byte > data)
 Imports a public key into the keyring. More...
 
string ExportKey (IKeyIDContainer keyIDContainer)
 Exports the public key for a specific key in the keyring. More...
 
IEnumerable< OpenPgpSecretKeyListSecretKeys ()
 Returns a list of secret keys in the keyring. More...
 

Static Public Member Functions

static Process GenerateKey ()
 Launches an interactive process for generating a new keypair. More...
 

Detailed Description

Provides access to the signature functions of GnuPG.

Constructor & Destructor Documentation

◆ GnuPG()

ZeroInstall.Store.Trust.GnuPG.GnuPG ( string  homeDir)
inline

Creates a new GnuPG instance.

Parameters
homeDirThe GnuPG home dir to use.

Member Function Documentation

◆ ExportKey()

string ZeroInstall.Store.Trust.GnuPG.ExportKey ( IKeyIDContainer  keyIDContainer)
inline

Exports the public key for a specific key in the keyring.

Implements ZeroInstall.Store.Trust.IOpenPgp.

◆ GenerateKey()

static Process ZeroInstall.Store.Trust.GnuPG.GenerateKey ( )
static

Launches an interactive process for generating a new keypair.

Returns
A handle that can be used to wait for the process to finish.
Exceptions
IOExceptionThe OpenPGP implementation could not be launched.

◆ ImportKey()

void ZeroInstall.Store.Trust.GnuPG.ImportKey ( ArraySegment< byte >  data)
inline

Imports a public key into the keyring.

Implements ZeroInstall.Store.Trust.IOpenPgp.

◆ ListSecretKeys()

IEnumerable< OpenPgpSecretKey > ZeroInstall.Store.Trust.GnuPG.ListSecretKeys ( )
inline

Returns a list of secret keys in the keyring.

Implements ZeroInstall.Store.Trust.IOpenPgp.

◆ Sign()

byte[] ZeroInstall.Store.Trust.GnuPG.Sign ( ArraySegment< byte >  data,
OpenPgpSecretKey  secretKey,
string?  passphrase = null 
)
inline

Creates a detached OpenPGP signature using a specific secret key.

Implements ZeroInstall.Store.Trust.IOpenPgp.

◆ Verify()

IEnumerable< OpenPgpSignature > ZeroInstall.Store.Trust.GnuPG.Verify ( ArraySegment< byte >  data,
byte[]  signature 
)
inline

Verifies a detached OpenPGP signature.

Implements ZeroInstall.Store.Trust.IOpenPgp.


The documentation for this class was generated from the following files: