char/avril

(wip) why'd you have to go and make things so complicaaaaated?

git clone https://git.t4t.associates/char/avril

Charlotte Somdeslop: factor module prep/transpilatione/etc into loader.rsab5df08

main
2 folders4 files

files

src/
tests/
Cargo.toml1.1 KiB
README.md1.7 KiB
build.rs137 B
tsconfig.json111 B

Web Crypto

avril exposes crypto, Crypto, SubtleCrypto, and CryptoKey. Random values and UUIDs use the operating system's cryptographic random source. SubtleCrypto implements hashing, key generation/import/export, encryption, signatures, derivation, and key wrapping.

Implemented algorithm families:

Key formats are raw, JWK, SPKI, and PKCS8 where applicable. Native key stores enforce usages and extractability independently of JavaScript metadata. Structured cloning preserves key policy without exporting key material. Stores belong to individual runtime extensions; in-flight jobs retain their keys, and destroying a runtime releases its store even if JS finalizers never run.

CPU-intensive operations use four process-wide worker threads. Buffer inputs are snapshotted before asynchronous work. Implementations use maintained RustCrypto libraries and vendored OpenSSL; RSA private operations use OpenSSL.

Known deviations

This extension is not yet a claim of full Web Crypto conformance.