Skip to main content

Module ogg_xor

Module ogg_xor 

Source
Expand description

Ogg/Vorbis related helpers used by Siglus/Tona.

The original engine sometimes stores Ogg data with a simple XOR obfuscation. Some runtimes apply this XOR transform on reads.

Structs§

BoundedFile
A Read + Seek wrapper that restricts access to a [start, start+len) range.

Functions§

looks_like_ogg
Basic sniffing for Ogg container magic.
validate_subrange
Validate offset/size against the file length.
xor_file_to_vec
Decrypt a whole file by XORing each byte with key.