C# Класс ZeroInstall.Store.Trust.GnuPG

Provides access to the signature functions of GnuPG.
This class is immutable and thread-safe.
Наследование: IOpenPgp
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
ParseSecretKey ( string sec, string fpr, string uid ) : OpenPgpSecretKey
ParseSignatureLine ( [ line ) : OpenPgpSignature

Описание методов

ExportKey() публичный Метод

public ExportKey ( IKeyIDContainer keyIDContainer ) : string
keyIDContainer IKeyIDContainer
Результат string

GenerateKey() публичный статический Метод

Launches an interactive process for generating a new keypair.
The OpenPGP implementation could not be launched.
public static GenerateKey ( ) : Process
Результат System.Diagnostics.Process

ImportKey() публичный Метод

public ImportKey ( byte data ) : void
data byte
Результат void

ListSecretKeys() публичный Метод

public ListSecretKeys ( ) : IEnumerable
Результат IEnumerable

Sign() публичный Метод

public Sign ( byte data, OpenPgpSecretKey secretKey, string passphrase = null ) : byte[]
data byte
secretKey OpenPgpSecretKey
passphrase string
Результат byte[]

Verify() публичный Метод

public Verify ( byte data, byte signature ) : IEnumerable
data byte
signature byte
Результат IEnumerable