encrypt

package
v0.0.0-...-da9a50a Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncryptionArtifact

type EncryptionArtifact struct {
	// The encryption process will have put the resulting encrypted file at this place.
	// It is the caller's responsibility to handle it afterwards
	Path string
	// The encryption key that was randomly generated to encrypt the file.
	EncryptionKey []byte
	// The size of the resulting file
	Size int64
	// A Hex-Encoded SHA256 checksum of the encrypted package
	Checksum string
}

EncryptionArtifact is the result of a successful encryption process

func EncryptEpub

func EncryptEpub(inputPath string, outputPath string) (EncryptionArtifact, error)

EncryptEpub generates an encrypted output file out of the input file It is called from the test frontend server; inputPath is therefore a file path.

func EncryptPackage

func EncryptPackage(profile license.EncryptionProfile, inputPath string, outputPath string) (EncryptionArtifact, error)

EncryptPackage generates an encrypted output RPF out of the input RPF It is called from the test frontend server

Jump to

Keyboard shortcuts

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