frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Rscrypto, pure-Rust crypto with industry leading public benches

https://github.com/loadingalias/rscrypto
15•LoadingALIAS•1h ago

Comments

LoadingALIAS•1h ago
I've built rscrypto because crypto kept being where my Rust database stopped being portable: different stack on the server, different target story on WASM, different answer on RISC-V/POWER/IBM Z, and a different audit surface every time I added a primitive. The supply chain risk, given the landscape we're in today, was too high.

v0.3.1 is one feature-selected crate. Leaf features when you need one primitive (`sha2`, `rsa`, `aes-gcm`, `ed25519`, etc.) or `full` for the stack. Scope includes SHA-2/3, SHAKE, cSHAKE256, BLAKE2, BLAKE3, Ascon hash/XOF, XXH3, RapidHash, CRCs, HMAC, KMAC256, HKDF, PBKDF2, Argon2, scrypt, PHC strings, RSA, Ed25519, X25519, AES-128/256-GCM, AES-128/256-GCM-SIV, ChaCha20-Poly1305, XChaCha20-Poly1305, AEGIS-256, and Ascon-AEAD128.

The primitive stack has zero default deps and no C-libs or FFI. Optional `getrandom`, `serde`, and `rayon` features stay out until enabled.

The current bench evidence is across nine Linux runners (Intel Sapphire Rapids, Intel Ice Lake, AMD Zen4, AMD Zen5, Graviton3, Graviton4, IBM Z/s390x, IBM POWER10/ppc64le, RISE RISC-V) and my local Apple MBP M1.

Linux vs. fastest-external: 3,545 wins and 5,210 wins-or-ties out of 5,832 comparisons, 1.61x geomean.

MBP M1 vs fastest-external: 235 wins and 450 wins-or-ties out of 463 comparisons, 1.25x geomean.

BLAKE3 large inputs (`>=64 KiB`) are 2.31x geomean improvement across Linux vs the official `blake3` crate and 1.80x on MBP M1.

While it's not universally faster - it's incredibly close. Current weak spots include PBKDF2-SHA256 setup at `iters=1`, X25519 DH, RSA verification on Arm/RISC-V, small-message AEAD rows, MBP M1 BLAKE3 64 KiB rows, HMAC-SHA256 bulk pressure against `aws-lc-rs`, and SHA3-256 streaming on Apple Silicon. The `./benchmark_results/OVERVIEW.md` lists the losses next to the wins in more detail.

Trust, Testing, Etc: portable Rust is the byte-for-byte authority. SIMD/ASM paths are accelerators and are differential tested against the portable path. MAC, AEAD, and signature comparisons are constant-time. Secret-bearing types zeroize on drop. I've got a pretty thorough Miri and Fuzzer testing gate setup, too. The RSA impl has it's own CI gate. Codecov = 73.06, fuzzing included.

This is not FIPS 140-3 validated, not a TLS stack, not a key store, and not third-party audited yet. I am genuinely interested in a third-party audit and would LOVE to plan for FIPS 140-3 validation, but it's just out of my reach right now.

The codebase/lib is obviously pre-v1 and I'm asking for public review while API changes are still relatively cheap.

Repo: https://github.com/loadingalias/rscrypto

Crate: https://crates.io/crates/rscrypto

Benches: https://github.com/loadingalias/rscrypto/blob/main/benchmark...

Migration Guides: https://github.com/loadingalias/rscrypto/blob/main/docs/migr...

Me: https://x.com/loadingalias

If you're testing, benching, etc. and happen to stumble across inconsistencies, vulnerabilities, etc. - please just reach out directly via 'X' or use Github's Vulnerability Reporting. There are a decent number of people already using the library.

Also, the 'fastest-external' competitors for perf comparisons are almost always one of the following: aws-lc-rs, ring, RustCrypto, dryoc, OpenSSL, Blake3 and/or one of the many 'crc-fast/fast-crc' crate variations. I benched these external crates against eachother in the beginning to trace the most performant before hunting inefficiency and cutting out any external deps/c-libs. So, if the benches show a 2x geomean over Blake3... that means it's over the fastest implementation of Blake3 I could find and bench publicly.

sevenoftwelve•19m ago
Hi @LoadingAlias,

> Constant-time MAC, AEAD, and signature verification.

That sounds suspiciously incomplete to me.

Which cryptographic algorithms in the library are currently not implemented in constant time?

Where did the speedup come from? How where these optimizations achieved?

What motivated you to write the library? Why not contribute to existing rust crypto libraries instead? How is the work financed?

What peer review strategy are you following with the library? Who else but yourself has verified this code?

sevenoftwelve•14m ago
Why do the different sha2 variants not share code? This seems like a lot of opportunities for small mistakes/discrepancies; especially considering the many architectures.

Was any of this generated using AI?

dave_universetf•11m ago
The readme has strong LLM smells. Was the code written by an LLM as well?

What is your experience with cryptographic engineering, in particular avoiding common implementation pitfalls that bite first-time implementers of cryptographic primitives?

Are the primitives tested against Wycheproof vectors, and proofed against the common implementation mistakes they document?

Gemma 4 12B: A unified, encoder-free multimodal model

https://blog.google/innovation-and-ai/technology/developers-tools/introducing-gemma-4-12b/
315•rvz•2h ago•110 comments

Bots have now passed human traffic online for the first time

https://radar.cloudflare.com/traffic#bot-vs-human
35•jmsflknr•36m ago•9 comments

I was recently diagnosed with anti-NMDA receptor encephalitis

https://burntsushi.net/encephalitis/
95•Tomte•4h ago•17 comments

ESP32-S31

https://www.espressif.com/en/products/socs/esp32-s31
131•volemo•2h ago•64 comments

DaVinci Resolve 21

https://www.blackmagicdesign.com/products/davinciresolve/whatsnew
220•pentagrama•4h ago•124 comments

Launch HN: Hyper (YC P26) – Company brain to power agentic development

16•shalinshah•39m ago•5 comments

Hacking your PC using your speaker without ever touching it

https://blog.nns.ee/2026/06/03/katana-badusb/
507•xx_ns•7h ago•83 comments

Gooey: A GPU-accelerated UI framework for Zig

https://github.com/duanebester/gooey
20•ksec•1h ago•0 comments

Skyvern (YC S23) Is Hiring Open-Source Loving DevRel Engineers

https://www.ycombinator.com/companies/skyvern/jobs/1qRTlVx-founding-developer-marketing-open-sour...
1•suchintan•1h ago

A Post-Quantum Future for Let's Encrypt

https://letsencrypt.org/2026/06/03/pq-certs
120•SGran•3h ago•48 comments

Fluid Simulation for Dummies

https://www.mikeash.com/pyblog/fluid-simulation-for-dummies.html
27•sebg•4d ago•6 comments

Show HN: Nutrepedia – nutrition info in 29 locales built with Clojure and Htmx

https://nutrepedia.com/en-us/
25•llovan•1h ago•13 comments

Meta workers can opt out of being tracked at work up to 30 min

https://www.bbc.com/news/articles/c93x0k194yno
508•reconnecting•5h ago•471 comments

Every Byte Matters

https://fzakaria.com/2026/06/01/every-byte-matters
191•ingve•7h ago•93 comments

Uber's $1,500/month AI limit is a useful signal for AI tool pricing

https://simonwillison.net/2026/Jun/3/uber-caps-usage/
60•pdyc•5h ago•84 comments

MacBook Neo Is So Popular That Apple Doubled Production

https://www.macrumors.com/2026/06/03/macbook-neo-production-doubled-says-kuo/
68•tosh•1h ago•38 comments

What I've learned about the trombone

http://bryanhu.com/blog/posts/what-ive-learned-about-the-trombone/
62•bookofjoe•7h ago•48 comments

Show HN: Rscrypto, pure-Rust crypto with industry leading public benches

https://github.com/loadingalias/rscrypto
15•LoadingALIAS•1h ago•4 comments

PlayStation Architecture

https://www.copetti.org/writings/consoles/playstation/
185•gregsadetsky•7h ago•36 comments

1-Click GitHub Token Stealing via a VSCode Bug

https://blog.ammaraskar.com/github-token-stealing/
606•ammar2•1d ago•92 comments

Mathematicians issue warning as AI rapidly gains ground

https://www.science.org/content/article/mathematicians-issue-warning-ai-rapidly-gains-ground
63•pseudolus•8h ago•90 comments

32GB of DDR5 now costs $375 – AI shortage continues to squeeze PC building

https://www.tomshardware.com/pc-components/ddr5/32gb-of-ddr5-now-costs-usd375-minimum-ai-shortage...
275•papersail•5h ago•266 comments

Show HN: Edsger – A handwritten Clojure REPL for the reMarkable 2

https://handwritten.danieljanus.pl/2026-06-01-edsger.html
206•nathell•23h ago•27 comments

Nabokov's pale fire: the lost 'father of all hypertext demos'? (2011)

https://dl.acm.org/doi/pdf/10.1145/1995966.1996008
99•aragonite•2d ago•24 comments

Angular v22

https://blog.angular.dev/announcing-angular-v22-c52bb83a4664
18•Klaster_1•1h ago•4 comments

How turkey hacked the hair-transplant industry

https://www.wired.com/story/how-turkey-hacked-the-hair-transplant-industry/
61•joozio•2d ago•64 comments

Sixteen Kids and a Hit Man (2024)

https://nymag.com/intelligencer/article/christopher-pence-corderos-fbi-dark-web-hit-man.html
6•Michelangelo11•2d ago•1 comments

Use your Nvidia GPU's VRAM as swap space on Linux

https://github.com/c0dejedi/nbd-vram
429•tanelpoder•19h ago•110 comments

I built a ceiling projection mapping of the planes flying over my house

https://old.reddit.com/r/nextfuckinglevel/comments/1tvmcin/i_live_in_the_take_off_path_of_sfo_and...
177•frereubu•4h ago•25 comments

The Public Should Own Half of the Big A.I. Companies

https://www.sanders.senate.gov/op-eds/the-public-should-own-half-of-the-big-a-i-companies/
96•droidjj•1h ago•100 comments