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 }
Click to show internal directories.
Click to hide internal directories.