Tequel is a high-performance integrity engine and hash function implemented in pure Rust, optimized for 4x Unrolling and AVX2-capable x86_64 architectures.
In v2.0.0, Tequel no longer focuses on security, but rather on high integrity and raw throughput, therefore,
TequelEncrypthas been removed.
Created for personal study purposes.
TQL-11 is a novel and non-standard cryptographic primitive.
- Not Peer-Reviewed: This algorithm has not undergone formal cryptanalysis by third-party researchers.
- Intended Use: Designed for data integrity and high-speed telemetry verification in controlled environments (e.g., Industrial IoT, DPP).
- Disclaimer: Do not use for high-value financial transactions or sensitive PII (Personally Identifiable Information) without understanding the risks of using non-standardized primitives.
Tequel's focus is not security, but reliable integrity and gross flow rate.
The TQL-11 core utilizes an ARX (Addition-Rotation-XOR) primitive designed for high-density bit diffusion and hardware-level efficiency.
- Register Pinning: Maps internal states directly to YMM registers to minimize stack spilling and maximize execution unit utilization.
- Loop Unrolling: 4x loop unrolling (256 bytes per iteration) to reduce branch overhead and improve Instruction-Level Parallelism (ILP).
- SIMD Implementation: Parallel YMM processing with asymmetric bit-twisting for distinct entropy paths.
- Zero-Allocation Pipeline: Uses static lookup tables for hexadecimal serialization and memory-mapped data processing.
Benchmarks conducted using Criterion on x86_64 hardware.
Environment: 8-core / 16-thread | target-cpu=native | AVX2.
| Payload Size | Throughput (v2.0.0) | Note |
|---|---|---|
| 1 MB | 7.70 GiB/s | Single-core saturation |
| 100 MB (Parallel) | 21.92 GiB/s | Multi-threaded (Rayon) |
- Strict Avalanche Criterion (SAC): 51.14%
- Shannon Entropy: 7.999991 bits/byte
- Heap Usage: Zero dynamic allocations during hashing process
- Determinism: Guaranteed across x86_64-avx2 platforms
- Collision Test: Zero collision & ~197k hashes/s (8 bytes) in 100 million iterations
Add to Cargo.toml:
tequel-rs = "2.0.0"use tequel::hash::TequelHash;
fn main() {
let mut teq = TequelHash::new();
let data = b"example_data";
let hash = teq.tqlhash(data);
println!("Hash: {}", hash);
}#include "tequel.h"
#include <stdio.h>
int main() {
uint8_t input[] = "data";
uint8_t hash[48];
tequel_hash_raw(input, sizeof(input), hash);
return 0;
}To reproduce results on your local hardware:
Powershell:
$env:RUSTFLAGS="-C target-cpu=native"; cargo benchLinux/macOS:
RUSTFLAGS="-C target-cpu=native" cargo benchcargo test -- --no-capture"Tequel" refers to the concept of "being weighed" (Daniel 5:27), representing the verification of data integrity.
Licensed under AGPLv3. For commercial licensing or closed-source integrations, contact dotxavket@gmail.com.