Documentation
¶
Index ¶
- Variables
- func Capacity(format string, cover io.Reader) (int, error)
- func EnvelopeSize(data []byte, opts payload.Options) (int, error)
- func Overhead(encrypted bool) int
- func ResolveCarrier(format, technique string) (carrier.Carrier, error)
- func Techniques(format string) []string
- type CapacityRow
- type FormatInfo
- type HideRequest
- type HideResult
- type RevealRequest
- type RevealResult
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoFormat = errors.New("crypha: a carrier format is required") ErrUnknownFormat = errors.New("crypha: unknown carrier format") ErrUnknownTechnique = errors.New("crypha: unknown pdf technique") ErrTechniqueOnNonPDF = errors.New("crypha: technique only applies to the pdf format") ErrUndetected = errors.New("crypha: no crypha payload detected; pass a format to force a carrier") )
Functions ¶
func Techniques ¶
Types ¶
type CapacityRow ¶
func CapacityAll ¶
func CapacityAll(cover []byte) []CapacityRow
type FormatInfo ¶
func Catalog ¶
func Catalog() []FormatInfo
type HideRequest ¶
type HideResult ¶
type HideResult struct {
Format string
Technique string
PayloadBytes int
EnvelopeBytes int
Encrypted bool
Compressed bool
}
func Hide ¶
func Hide(req HideRequest) (HideResult, error)
type RevealRequest ¶
type RevealResult ¶
func Reveal ¶
func Reveal(req RevealRequest) (RevealResult, error)
Click to show internal directories.
Click to hide internal directories.