SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 C Crypto Projects
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
mbedTLS
An open source, portable, easy to use, readable and flexible TLS library, and reference implementation of the PSA Cryptography API. Releases are on a varying cadence, typically around 3 - 6 months between releases.
-
-
Project mention: OpenSSL bug exposed up to 255 bytes of server heap and existed since 2011 | news.ycombinator.com | 2024-07-30
I started writing s2n the day after Heartbleed and the first lines of code were for the stuffer interface. A stuffer is a buffer for stuff, and it's like Java buffered I/O for C. You can get a flavor from reading the header: https://github.com/aws/s2n-tls/blob/main/stuffer/s2n_stuffer...
The implementation is incredibly simple. Treat all blocks of memory as blob with a known size and then read/write into those blobs with a cursor to track progress and bounds checks on every access. Fence all serialization/deserialization through a safe low level interface. Not only do you get memory safety (which we later proved using formal reasoning) ... but when you're parsing message formats it lends itself to a declarative coding style that makes it very clear what the structure is. You can also do lifecycle things, like erasing sensitive memory with zeroes when you're done with it, making sure things don't show up in core dumps, etc. BoringSSL introduced a Crypto_bytes API that also did some of this plus bounds checking, and retrofit it into OpenSSL.
OpenSSL on the other hand is a horrific mash up of raw pointer arithmetic, ad-hoc parsers interleaved with business logic and control flow. I could never keep it straight, and it always scared me to review.
-
-
That’s what we did when we built air-gapped Bitcoin cold storage: https://github.com/square/subzero
-
-
libhydrogen
A lightweight, secure, easy-to-use crypto library suitable for constrained environments.
-
-
-
Project mention: Mako – fast, production-grade web bundler based on Rust | news.ycombinator.com | 2024-07-02
Sadly, I only discovered that one after I named this project: https://github.com/chjj/mako
-
scrypt
The scrypt key derivation function was originally developed for use in the Tarsnap online backup system and is designed to be far more secure against hardware brute-force attacks than alternative functions such as PBKDF2 or bcrypt.
-
-
Zenroom
Embedded no-code VM executing human-like language to manipulate data and process cryptographic operations.
-
SHA-Intrinsics
SHA-1, SHA-256 and SHA-512 compression functions using Intel, ARMv8 and Power8 SHA intrinsics
-
-
-
denarius
Denarius [$D] is a PoW/PoS Hybrid Cryptocurrency with Tribus a new PoW Hashing Algo built specifically for D, one of a kind hybrid masternodes called Fortuna Stakes, atomic swaps, staking, mining, IPFS, optional Native Tor and I2P, and much more!
-
Project mention: Cloud-native key-value storage for sequential data | news.ycombinator.com | 2024-04-29
-
-
-
C Crypto discussion
C Crypto related posts
-
Online Cryptography Course by Dan Boneh
-
Cloud-native key-value storage for sequential data
-
Ask HN: What are your favorite tiny, single purpose tools?
-
Embeddable key-value storage for events and time-series data (v1.0 released)
-
Minisign A dead simple tool to sign files and verify signatures
-
Linux Protection Against Theft
-
OpenWrt 23.05
-
A note from our sponsor - SaaSHub
www.saashub.com | 13 Jan 2025
Index
What are some of the best open-source Crypto projects in C? This list will help you:
Project | Stars | |
---|---|---|
1 | libsodium | 12,427 |
2 | mbedTLS | 5,632 |
3 | GmSSL | 5,321 |
4 | s2n | 4,553 |
5 | minisign | 2,252 |
6 | kyber | 868 |
7 | subzero | 686 |
8 | glorytun | 682 |
9 | libhydrogen | 644 |
10 | CTFs | 612 |
11 | swtpm | 609 |
12 | mako | 576 |
13 | scrypt | 479 |
14 | tpm2-pkcs11 | 285 |
15 | Zenroom | 204 |
16 | SHA-Intrinsics | 203 |
17 | charm | 154 |
18 | tpm2-tss-engine | 151 |
19 | denarius | 110 |
20 | monotone | 76 |
21 | CatCrypto | 70 |
22 | IMUtility | 39 |
23 | cpace | 35 |