cryptography

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Hashes = [1]string{"sha256"}

Hashes is the list of supported Cryptographic Hash Functions used for the checksum feature.

Functions

func GenerateChecksum

func GenerateChecksum(sourcePack, destinationDir, hashFunction string) error

GenerateChecksum creates a .checksum file for a pack.

func SignPack added in v0.8.3

func SignPack(packPath, certPath, keyPath, outputDir, version string, certOnly, skipCertValidation, skipInfo bool) error

SignPack is the command entrypoint to the signature specific creation functions.

func VerifyChecksum

func VerifyChecksum(packPath, checksumPath string) error

VerifyChecksum validates the contents of a pack according to a provided .checksum file.

func VerifyPackSignature added in v0.8.3

func VerifyPackSignature(packPath, pubPath, version string, export, skipCertValidation, skipInfo bool) error

VerifyPackSignature is the command entrypoint to the signature specific validation functions.

func WriteChecksumFile added in v0.8.0

func WriteChecksumFile(digests map[string]string, filename string) error

WriteChecksumFile writes the digests of a pack and writes it to a local file

Types

This section is empty.

Jump to

Keyboard shortcuts

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