lcp

package
v0.0.0-...-3588181 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(out io.Writer, in io.ReaderAt, inSize int64, userKeyHex string, opts ...DecryptOption) error

Decrypt reads an EPUB file encrypted with the Readium LCP DRM from in and outputs a regular EPUB file to out.

isSize should be the total size of the input data, and userKeyHex the hex encoded LCP user key.

Types

type DecryptOption

type DecryptOption func(*decryptOptions)

func WithLogger

func WithLogger(log func(msg string)) DecryptOption

type EncryptionAlgorithm

type EncryptionAlgorithm string
const (
	EncryptionAlgorithmAES256CBC       EncryptionAlgorithm = "http://www.w3.org/2001/04/xmlenc#aes256-cbc"
	EncryptionAlgorithmFontObfuscation EncryptionAlgorithm = "http://www.idpf.org/2008/embedding"
)

type FileEntry

type FileEntry struct {
	Path                string
	IsCompressed        bool
	EncryptionAlgorithm EncryptionAlgorithm
}

Jump to

Keyboard shortcuts

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