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

Provides access to the OpenPGP signature functions of Bouncy Castle. More...

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

Public Member Functions

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...
 
 BouncyCastle (string homeDir)
 Creates a new Bouncy Castle instance. More...
 

Detailed Description

Provides access to the OpenPGP signature functions of Bouncy Castle.

Constructor & Destructor Documentation

◆ BouncyCastle()

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

Creates a new Bouncy Castle instance.

Parameters
homeDirThe GnuPG home dir to use.

Member Function Documentation

◆ ExportKey()

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

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

Implements ZeroInstall.Store.Trust.IOpenPgp.

◆ ImportKey()

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

Imports a public key into the keyring.

Implements ZeroInstall.Store.Trust.IOpenPgp.

◆ ListSecretKeys()

IEnumerable< OpenPgpSecretKey > ZeroInstall.Store.Trust.BouncyCastle.ListSecretKeys ( )

Returns a list of secret keys in the keyring.

Implements ZeroInstall.Store.Trust.IOpenPgp.

◆ Sign()

byte[] ZeroInstall.Store.Trust.BouncyCastle.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.BouncyCastle.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: