MCPcopy Create free account

hub / github.com/dennis-tra/image-stego / functions

Functions45 in github.com/dennis-tra/image-stego

↓ 13 callersFunctionWithLSB
WithLSB returns the given byte with the least significant bit (LSB) set to the given bit value, while true means 1 and false means 0.
pkg/bit/bit.go:5
↓ 11 callersMethodWrite
Write writes the given bytes to the least significant bits of the chunk. It returns the number of bytes written from p and an error if one occurred. C
internal/chunk/chunk.go:108
↓ 10 callersMethodRead
Read reads the amount of bytes given in p from the LSBs of the image chunk. It returns the number of bytes read from the least significant bits and an
internal/chunk/chunk.go:144
↓ 7 callersFunctionblackImage
blackImage creates an RGBA image with the given width and height where all pixels are black. The underlying Pix byte array contains w x h x 4 entries.
internal/chunk/chunk_test.go:26
↓ 7 callersFunctionwhiteImage
whiteImage creates an RGBA image with the given width and height where all pixels are white. The underlying Pix byte array contains w x h x 4 entries.
internal/chunk/chunk_test.go:33
↓ 5 callersMethodHeight
Height is a short hand to return the height in pixels of the chunk
internal/chunk/chunk.go:39
↓ 5 callersFunctionImageToRGBA
ImageToRGBA converts an image.Image to an *image.RGBA
internal/chunk/file.go:56
↓ 5 callersMethodWidth
Width is a short hand to return the width in pixels of the chunk
internal/chunk/chunk.go:34
↓ 3 callersFunctionGetLSB
GetLSB given a byte, will return the least significant bit of that byte
pkg/bit/bit.go:14
↓ 3 callersFunctionSaveImageFile
SaveImageFile saves the given image data to the given filepath as a PNG image.
internal/chunk/file.go:34
↓ 3 callersFunctionSetExtension
SetExtension sets the file extension to nexExt and removes the old one
internal/chunk/file.go:50
↓ 2 callersFunctionCalculateChunkBounds
CalculateChunkBounds takes the given *image.RGBA and calculates the optimal distribution of image chunks to encode the merkle tree data. The more chu
internal/chunk/dimension.go:29
↓ 2 callersMethodLSBCount
LSBCount returns the total number of least significant bits (LSB) available for encoding a message. Currently only the RGB values are considered not t
internal/chunk/chunk.go:50
↓ 2 callersMethodMaxX
MaxX in this context returns the ending value for iterating over the horizontal axis of the image
internal/chunk/chunk.go:60
↓ 2 callersMethodMaxY
MaxY in this context returns the ending value for iterating over the vertical axis of the image
internal/chunk/chunk.go:70
↓ 2 callersMethodMinX
MinX in this context returns the starting value for iterating over the horizontal axis of the image
internal/chunk/chunk.go:55
↓ 2 callersMethodMinY
MinY in this context returns the starting value for iterating over the vertical axis of the image
internal/chunk/chunk.go:65
↓ 2 callersFunctionOpenImageFile
OpenImageFile opens the file at the given path and returns the decoded *image.RGBA
internal/chunk/file.go:14
↓ 2 callersMethodPixelCount
PixelCount returns the total number of pixels
internal/chunk/chunk.go:44
↓ 2 callersFunctionassertPixExpect
(t *testing.T, chunk Chunk, expects []PixExpect)
internal/chunk/chunk_test.go:305
↓ 2 callersFunctionchunkDist
chunkDist calculates the chunk distribution along the width and height. The aim is to get an evenly distributed field of chunks.
internal/chunk/dimension.go:110
↓ 1 callersMethodCalculateHash
CalculateHash calculates the SHA256 hash of the 7 most significant bits. The least significant bit (LSB) is not considered in the hash generation as i
internal/chunk/chunk.go:80
↓ 1 callersFunctionDecode
(filepath string)
internal/chunk/decode.go:13
↓ 1 callersFunctionEncode
(filepath string, outdir string)
internal/chunk/encode.go:14
↓ 1 callersMethodMaxPayloadSize
MaxPayloadSize returns the maximum number of bytes that can be written to this chunk
internal/chunk/chunk.go:29
↓ 1 callersFunctionprimeFactors
primeFactors returns what the name says ;) Src: https://siongui.github.io/2017/05/09/go-find-all-prime-factors-of-integer-number/
internal/chunk/dimension.go:138
MethodEquals
Equals tests for equality of two Contents. It only considers the 7 most significant bits since the last bit contains the hash data of the other chunks
internal/chunk/chunk.go:187
FunctionTestBitsPerPixelInRange
(t *testing.T)
internal/chunk/chunk_test.go:41
FunctionTestChunk_LSBCount
(t *testing.T)
internal/chunk/chunk_test.go:53
FunctionTestChunk_MaxPayloadSize1
(t *testing.T)
internal/chunk/chunk_test.go:58
FunctionTestChunk_PixelCount
(t *testing.T)
internal/chunk/chunk_test.go:46
FunctionTestChunk_WriteEmptyInput
(t *testing.T)
internal/chunk/chunk_test.go:78
FunctionTestChunk_WriteMoreThanPossible
(t *testing.T)
internal/chunk/chunk_test.go:146
FunctionTestChunk_WritePartialByteWritten
(t *testing.T)
internal/chunk/chunk_test.go:160
FunctionTestChunk_WriteSetAllBitsToOne
(t *testing.T)
internal/chunk/chunk_test.go:94
FunctionTestChunk_WriteSetMixedBits
(t *testing.T)
internal/chunk/chunk_test.go:117
FunctionTestGetLSB
(t *testing.T)
pkg/bit/bit_test.go:10
FunctionTestReadWrite
(t *testing.T)
internal/chunk/chunk_test.go:246
FunctionTestReadWriteSeparate
(t *testing.T)
internal/chunk/chunk_test.go:266
FunctionTestRead_LargerReadBuffer
(t *testing.T)
internal/chunk/chunk_test.go:218
FunctionTestRead_MatchingLength
(t *testing.T)
internal/chunk/chunk_test.go:188
FunctionTestRead_PartialReadBuffer
(t *testing.T)
internal/chunk/chunk_test.go:232
FunctionTestRead_SmallerReadBuffer
(t *testing.T)
internal/chunk/chunk_test.go:203
FunctionTestWithLSB
(t *testing.T)
pkg/bit/bit_test.go:29
Functionmain
()
cmd/stego/main.go:12