C Crypto

Open-source C projects categorized as Crypto

Top 23 C Crypto Projects

  • libsodium

    A modern, portable, easy to use crypto library.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • 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.

  • GmSSL

    支持国密SM2/SM3/SM4/SM9/SSL的密码工具箱

  • s2n

    An implementation of the TLS/SSL protocols

    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.

  • minisign

    A dead simple tool to sign files and verify digital signatures.

    Project mention: What to Use Instead of PGP | news.ycombinator.com | 2024-11-15
  • kyber

  • subzero

    Block's Bitcoin Cold Storage solution.

    Project mention: An Animated QR Code of Bad Apple | news.ycombinator.com | 2024-05-17

    That’s what we did when we built air-gapped Bitcoin cold storage: https://github.com/square/subzero

  • glorytun

    Multipath UDP tunnel

  • libhydrogen

    A lightweight, secure, easy-to-use crypto library suitable for constrained environments.

    Project mention: Botan: Crypto and TLS for Modern C++ | news.ycombinator.com | 2024-12-19
  • CTFs

    CTF Cheat Sheet + Writeups / Files for some of the Cyber CTFs that I've done

  • swtpm

    Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface.

  • mako

    Bitcoin node written in C (by chjj)

    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.

  • tpm2-pkcs11

    A PKCS#11 interface for TPM2 hardware

  • 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

  • charm

    A really tiny crypto library. (by jedisct1)

  • tpm2-tss-engine

    OpenSSL Engine for TPM2 devices

  • 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!

  • monotone

    embeddable cloud-native storage for events and time-series data

    Project mention: Cloud-native key-value storage for sequential data | news.ycombinator.com | 2024-04-29
  • CatCrypto

    An easy way for hashing and encryption.

  • IMUtility

    A Safety-Critical Utility Code

  • cpace

    A CPace PAKE implementation using libsodium.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C Crypto discussion

Log in or Post with

C Crypto related posts

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

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you konow that C is
the 6th most popular programming language
based on number of metions?