pgp

package
v0.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildPGPSignedMessage

func BuildPGPSignedMessage(payload []byte, pin string, publicKeyPath string) ([]byte, error)

BuildPGPSignedMessage creates a multipart/signed MIME message using a YubiKey. publicKeyPath is the path to the account's PGP public key file, used to read key metadata (fingerprint, key ID, algorithm) for building a valid OpenPGP signature packet.

func GetYubiKeyInfo

func GetYubiKeyInfo() (string, error)

GetYubiKeyInfo returns human-readable information about the connected card.

func VerifyYubiKeyAvailable

func VerifyYubiKeyAvailable() error

VerifyYubiKeyAvailable checks if a YubiKey with OpenPGP support is connected.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL