Documentation
¶
Index ¶
- func CompressAndEncrypt(plaintext, key []byte) ([]byte, []byte, error)
- func CompressXZ(data []byte) ([]byte, error)
- func DecompressXZ(compressedData []byte) ([]byte, error)
- func DecryptAESGCM(ciphertext, nonce, key []byte) ([]byte, error)
- func DecryptAndDecompress(ciphertext, key, nonce []byte) ([]byte, error)
- func DeriveKey(password string) []byte
- func Embed(inputFile string, outputFile string, container string, key []byte, ...) error
- func EmbedToLSB(pcmData []byte, message []byte) ([]byte, error)
- func EncryptAESGCM(plaintext, key []byte) ([]byte, []byte, error)
- func Extract(container, outputFile string, key []byte, encryption bool, verbose bool) error
- func ExtractGDPFromLSB(pcmData []byte) ([]byte, error)
- func GetEmbedSize(pcmData []byte) int
- func MakeGDPFile(encryption bool, nonce []byte, ciphertext []byte) ([]byte, error)
- func PCMToWAV(outputFile string, pcmData []byte, metadata wavMetadata) error
- func ParseGDPFile(input []byte, dummy bool) (bool, int, []byte, uint64, []byte, error)
- func ReadGDPFile(input string) (bool, int, []byte, uint64, []byte, error)
- func SpawnGui()
- func WAVToPCM(inputFile string) ([]byte, *wavMetadata, error)
- func WriteGDPFile(filename string, encryption bool, nonce []byte, ciphertext []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompressAndEncrypt ¶
CompressAndEncrypt compresses the input data and then encrypts it with AES-GCM
func CompressXZ ¶
func DecompressXZ ¶
DecompressXZ decompresses XZ data
func DecryptAESGCM ¶
DecryptAESGCM decrypts data using AES-GCM
func DecryptAndDecompress ¶
DecryptAndDecompress decrypts the data with AES-GCM and decompresses it using XZ
func EmbedToLSB ¶
EmbedToLSB embeds a message into the least significant bit (LSB) of PCM data.
func EncryptAESGCM ¶
EncryptAESGCM encrypts data using AES-GCM
func ExtractGDPFromLSB ¶
ExtractGDPFromLSB extracts a GDP file from the LSB of PCM data.
func GetEmbedSize ¶
GetEmbedSize calculates the available space for embedding data in PCM.
func MakeGDPFile ¶
MakeGDPFile constructs a GDP file with the given encryption flag, nonce, and ciphertext.
func ParseGDPFile ¶
ParseGDPFile parses a GDP file format and extracts encryption flag, nonce, and ciphertext.
func ReadGDPFile ¶
ReadGDPFile reads a GDP file from disk and parses its contents.
Types ¶
This section is empty.