signature

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: AGPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sign

func Sign(
	src io.Reader,
	isRegular bool,
	signatureFormat string,
	identity interface{},
) (io.Reader, func() (string, error), error)

func SignHeader

func SignHeader(
	hdr *tar.Header,
	isRegular bool,
	signatureFormat string,
	identity interface{},
) error

func SignString

func SignString(
	src string,
	isRegular bool,
	signatureFormat string,
	identity interface{},
) (string, error)

func Verify

func Verify(
	src io.Reader,
	isRegular bool,
	signatureFormat string,
	recipient interface{},
	signature string,
) (io.Reader, func() error, error)

func VerifyHeader

func VerifyHeader(
	hdr *tar.Header,
	isRegular bool,
	signatureFormat string,
	recipient interface{},
) error

func VerifyString

func VerifyString(
	src string,
	isRegular bool,
	signatureFormat string,
	recipient interface{},
	signature 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