apkgsig

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const SignatureSize = 3 + ed25519.PublicKeySize + ed25519.SignatureSize

varint(1), varint(ed25519.PublicKeySize), varint(ed25519.SignatureSize) = 3

Variables

This section is empty.

Functions

func CACerts

func CACerts() *x509.CertPool

func DbKeyName

func DbKeyName(k string) string

func ReadVarblob

func ReadVarblob(r SigReader, maxLen uint64) ([]byte, error)

func Sign

func Sign(k hsm.Key, data []byte) ([]byte, error)

func WriteVarblob

func WriteVarblob(w io.Writer, v []byte) error

Types

type SigReader

type SigReader interface {
	io.Reader
	io.ByteReader
}

type VerifyResult

type VerifyResult struct {
	Version int
	Key     string
	Name    string
}

func VerifyDb

func VerifyDb(data []byte, sig SigReader) (*VerifyResult, error)

func VerifyPkg

func VerifyPkg(data []byte, sig SigReader) (*VerifyResult, error)

Jump to

Keyboard shortcuts

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