index

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Concat added in v0.2.0

func Concat(b1 io.Reader, b2 io.Reader) io.Reader

func ReadApkIndex

func ReadApkIndex(f io.Reader) (*apkutils.ApkIndex, error)

func SignApkIndex added in v0.2.0

func SignApkIndex(b []byte, signer Signer, pubkeyname string) (*bytes.Buffer, error)

Unsigned APKINDEX.tar.gz openssl dgst -sha1 -sign privatekeyfile

-out .SIGN.RSA.nameofpublickey APKINDEX.unsigned.tar.gz

Types

type Signer added in v0.2.0

type Signer interface {
	// Sign returns raw signature for the given data. This method
	// will apply the hash specified for the keytype to the data.
	Sign(data []byte) ([]byte, error)
}

A Signer is can create signatures that verify against a public key.

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

Writer provides sequential writing of APKINDEX index entries from APK files

func NewWriter

func NewWriter(w io.Writer) *Writer

func (*Writer) Close

func (w *Writer) Close()

func (*Writer) Write

func (w *Writer) Write(entry *apkutils.IndexEntry)

func (*Writer) WriteApk added in v0.1.3

func (w *Writer) WriteApk(apk *apkutils.ApkFile)

Jump to

Keyboard shortcuts

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