mirror of
https://codeberg.org/rag27/dilithium-mini.git
synced 2026-10-07 06:19:22 +00:00
No description
- TypeScript 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .gitignore | ||
| build.ts | ||
| dil.test.ts | ||
| index.ts | ||
| package.json | ||
| README.md | ||
| utils.ts | ||
dilithium-mini
This is a minimalistic dilithium package (FIPS204)
Performance
The performance is a bit off what @noble/post-quantum shows with Bun (about 10%),
much slower with nodejs.
Usage
dilithium usage example using dil_87:
import { dil_87 } from "kyber-mini"
// generates the keys
const keys = dil_87.keyGen();
// creates the signature for the message
const sig = dil_87.sign(keys.privateKey, message);
// verifies whether the signature is valid
if (verify(publicKey, message, sig)) ...
Instalation
bun install dilithium-mini
or
npm install dilithium-mini
Audit
Note that this library was not audited by a third party.