Core Framework Encryption Service + Proxy server - with a Cryptonote twist
Find a file
google-labs-jules[bot] f51ef1b52e feat: Add fuzz test and fix OOM vulnerability
This commit introduces a fuzz test for the `Decode` function in the `trix` package. This test immediately uncovered a critical out-of-memory (OOM) vulnerability.

-   Adds a new fuzz test, `FuzzDecode`, to `pkg/trix/fuzz_test.go` to continuously test the `Decode` function with a wide range of malformed inputs.
-   Fixes a denial-of-service vulnerability where a malicious input could specify an extremely large header length, causing the application to crash due to an out-of-memory error.
-   Introduces a `MaxHeaderSize` constant (16MB) and a check in the `Decode` function to ensure that the header length does not exceed this limit.
-   Adds a new error, `ErrHeaderTooLarge`, to provide clear feedback when the header size limit is exceeded.
2025-11-02 02:21:21 +00:00
.dataset Switching machines, ffmpeg + readable byte stream 2022-01-24 07:43:24 +00:00
.github feat: Expand test coverage for chachapoly 2025-10-30 19:35:51 +00:00
.run Switching machines, ffmpeg + readable byte stream 2022-01-24 07:43:24 +00:00
docs feat: Implement generic .trix file format 2025-10-31 01:06:23 +00:00
examples feat: Implement Go encoding types as Sigils 2025-10-31 15:19:30 +00:00
pkg feat: Add fuzz test and fix OOM vulnerability 2025-11-02 02:21:21 +00:00
vault feat: Expand test coverage for chachapoly 2025-10-30 19:35:51 +00:00
.gitignore feat: Expand test coverage for chachapoly 2025-10-30 19:35:51 +00:00
DISCLAIMER.md 42 2022-01-23 21:49:14 +00:00
go.mod feat: Expand test coverage for chachapoly 2025-10-30 19:35:51 +00:00
go.sum feat: Add ChaCha20-Poly1305 encryption 2025-10-30 19:01:08 +00:00
go.work feat: Expand test coverage for chachapoly 2025-10-30 19:35:51 +00:00
LICENCE Create LICENCE 2022-01-23 13:07:49 +00:00
README.md feat: Expand test coverage for chachapoly 2025-10-30 19:35:51 +00:00
Taskfile.yml feat: Add checksums and asymmetrical sigils to Trix container 2025-10-31 02:55:58 +00:00

Enchantrix

Enchantrix is a Go-based encryption library for the Core framework, designed to provide a secure and easy-to-use framework for handling sensitive data in Web3 applications. It will feature Poly-ChaCha stream proxying and a custom .trix file format for encrypted data.

Test-Driven Development

This project follows a strict Test-Driven Development (TDD) methodology. All new functionality must be accompanied by a comprehensive suite of tests.

Getting Started

To get started with Enchantrix, you'll need to have Go installed. You can then run the tests using the following command:

go test ./...