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