Documentation ¶
Index ¶
Constants ¶
View Source
const ( SOH byte = 1 // Start of header STX byte = 2 // Start of text (end of header) )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Scrambler ¶
Scrambler is used to distribute data in an image, but an implementation should not alter the image itself.
The Init method should put the scrambler in a state from which Next should always generate the same sequence of results given the same image.
Next should return whichever pixel and colour channel that should be modified or read next. Calling next should always result in unique color coordinates (x, y and c), as long as it's not called more times than the capacity returned by Cap.
Cap should return the maximum number of times Next can be guaranteed to produce unique colour coordinates. If Init hasn't been called before Cap, Cap should return 0.
type StegoError ¶
type StegoError string
func (StegoError) Error ¶
func (e StegoError) Error() string
Click to show internal directories.
Click to hide internal directories.