util

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package util contains generic functions.

Index

Constants

View Source
const SectionSolpipeHook logger.Section = 1

Variables

View Source
var LoggerBrainSimple = logger.Standard{Category: logger.CategoryTunnel, Section: SectionSolpipeHook, Code: 1}

Functions

func BotPipelineWhiteList

func BotPipelineWhiteList() []sgo.PublicKey

func DownloadCatscopeRustBotDemonstrator

func DownloadCatscopeRustBotDemonstrator(ctx context.Context) (string, error)

DownloadCatscopeRustBotDemonstrator downloads a Noncepad build demonstration web assembly blob

func DownloadSigned

func DownloadSigned(ctx context.Context, url string, armoredKeyring io.Reader) ([]byte, error)

DownloadSigned fetches a PGP clear-signed file from url, verifies its signature against armoredKeyring, and returns the decoded binary payload. The signed message body must be the binary data encoded as standard base64.

func ParsePubkey

func ParsePubkey(data []byte) (sgo.PublicKey, error)

func VerifyDetached

func VerifyDetached(signed io.Reader, sig io.Reader, armoredKeyring io.Reader) error

VerifyDetached checks a detached PGP signature (armored .asc or raw binary .sig) against signed and returns an error if verification fails.

Types

This section is empty.

Source Files

  • gpg.go
  • logger.go
  • util.go
  • whitelist.go

Jump to

Keyboard shortcuts

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