pkg

package
v0.0.0-...-09f0ea0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPrivateKeyFileName = "private.pem"
View Source
const DefaultPublicKeyFileName = "public.pem"

Variables

View Source
var ArtifactsDir string
View Source
var ContentsDir string
View Source
var Verbose = false
View Source
var WorkDir string

Functions

func Authenticate

func Authenticate(file string, sigfile string, pubkey *rsa.PublicKey) error

func AuthenticateFile

func AuthenticateFile(file string, sigfile string, pubkeyfile string) error

func AuthenticateFiles

func AuthenticateFiles(files []string, pub string) error

func CleanupWorkArea

func CleanupWorkArea()

func CreateUniqueId

func CreateUniqueId() uuid.UUID

func CreateWorkArea

func CreateWorkArea(root string) string

func Decrypt

func Decrypt(passphrase string, from string, to string) error

func Encrypt

func Encrypt(passphrase string, from string, to string) error

func GenerateKeys

func GenerateKeys(priv, pub string) error

func LoadPrivateKey

func LoadPrivateKey(keyfile string) (*rsa.PrivateKey, error)

func LoadPublicKey

func LoadPublicKey(pubkeyfile string) (*rsa.PublicKey, error)

func Package

func Package(bn string) error

func Packfiles

func Packfiles(fn, dir string) error

func SetUniqueId

func SetUniqueId(id string)

func Sign

func Sign(file string, sigfile string, pvt *rsa.PrivateKey) error

func SignFile

func SignFile(file string, sigfile string, pvtkeyfile string) error

func SignFiles

func SignFiles(files []string, pvtkeyfile string) error

func UnPackfiles

func UnPackfiles(fn, dir string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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