cloudflare
circl
Go

CIRCL: Cloudflare Interoperable Reusable Cryptographic Library

Last updated Jul 8, 2026
1.7k
Stars
211
Forks
62
Issues
+8
Stars/day
Attention Score
79
Language breakdown
Go 78.7%
Assembly 18.9%
C 1.8%
Go Template 0.4%
Makefile 0.1%
Awk 0.0%
Files click to expand
README

CIRCL

GitHub release CIRCL GoDoc Go Report Card codecov

CIRCL (Cloudflare Interoperable, Reusable Cryptographic Library) is a collection of cryptographic primitives written in Go. The goal of this library is to be used as a tool for experimental deployment of cryptographic algorithms targeting Post-Quantum (PQ) and Elliptic Curve Cryptography (ECC).

Security Disclaimer

🚨 This library is offered as-is, and without a guarantee. Therefore, it is expected that changes in the code, repository, and API occur in the future. We recommend to take caution before using this library in a production application since part of its content is experimental. All security issues must be reported, please notify us immediately following the instructions given in our Security Policy.

Installation

You can get CIRCL by fetching:

go get -u github.com/cloudflare/circl

Alternatively, look at the Cloudflare Go fork to see how to integrate CIRCL natively in Go.

List of Algorithms

[RFC-7748]: https://doi.org/10.17487/RFC7748 [RFC-8032]: https://doi.org/10.17487/RFC8032 [RFC-8235]: https://doi.org/10.17487/RFC8235 [RFC-9180]: https://doi.org/10.17487/RFC9180 [RFC-9380]: https://doi.org/10.17487/RFC9380 [RFC-9474]: https://doi.org/10.17487/RFC9474 [RFC-9496]: https://doi.org/10.17487/RFC9496 [RFC-9497]: https://doi.org/10.17487/RFC9497 [FIPS 202]: https://doi.org/10.6028/NIST.FIPS.202 [FIPS 204]: https://doi.org/10.6028/NIST.FIPS.204 [FIPS 205]: https://doi.org/10.6028/NIST.FIPS.205 [FIPS 186-5]: https://doi.org/10.6028/NIST.FIPS.186-5 [BLS12-381]: https://electriccoin.co/blog/new-snark-curve/ [ia.cr/2015/267]: https://ia.cr/2015/267 [ia.cr/2019/966]: https://ia.cr/2019/966

Elliptic Curve Cryptography

| Diffie-Hellman Protocol | |:---:|

| Digital Signature Schemes | |:---:| | Prime Groups | |:---:|

- P-256, P-384, P-521. ([FIPS 186-5]) - Ristretto group. ([RFC-9496]) - Bilinear pairings: with the [BLS12-381] curve, and hash to G1 and G2. - Hash to curve, hash to field, XMD and XOF expanders. ([RFC-9380])

| High-Level Protocols | |:---:|

- HPKE: Hybrid Public-Key Encryption ([RFC-9180]) - VOPRF: Verifiable Oblivious Pseudorandom functions. ([RFC-9497]) - RSA Blind Signatures. ([RFC-9474]) - Partially-blind RSA Signatures. (draft-cfrg-partially-blind-rsa) - CPABE: Ciphertext-Policy Attribute-Based Encryption. ([ia.cr/2019/966]) - OT: Simplest Oblivious Transfer ([ia.cr/2015/267]). - Threshold RSA Signatures (Shoup Eurocrypt 2000). - Prio3 Verifiable Distributed Aggregation Function (draft-irtf-cfrg-vdaf).

Post-Quantum Cryptography

| KEM: Key Encapsulation Methods | |:---:|

- ML-KEM: modes 512, 768, 1024 (FIPS-203). - X-Wing (draft-connolly-cfrg-xwing-kem). - Kyber KEM: modes 512, 768, 1024 (KYBER). - FrodoKEM: modes 640-SHAKE. (FrodoKEM) - CSIDH: Post-Quantum Commutative Group Action (CSIDH). - (insecure, deprecated) SIDH/SIKE: Supersingular Key Encapsulation with primes p434, p503, p751 (SIKE).

| Digital Signature Schemes | |:---:|

- Dilithium: modes 2, 3, 5 (Dilithium). - ML-DSA: modes 44, 65, 87 ([FIPS 204]). - SLH-DSA: twelve parameter sets, pure and pre-hash signing ([FIPS 205]).

Zero-knowledge Proofs

- Schnorr: Prove knowledge of the Discrete Logarithm. ([RFC-8235]) - DLEQ: Prove knowledge of the Discrete Logarithm Equality. ([RFC-9497]) - DLEQ in Qn: Prove knowledge of the Discrete Logarithm Equality for subgroup of squares in (Z/nZ)\*.

Symmetric Cryptography

| XOF: eXtendable Output Functions | |:---:|

- SHAKE128 and SHAKE256 ([FIPS 202]). - BLAKE2X: BLAKE2XB and BLAKE2XS (Blake2x) - KangarooTwelve: fast hashing based on Keccak-p. (KangarooTwelve). - SIMD Keccak f1600 Permutation.

| LWC: Lightweight Cryptography | |:---:|

Misc

| Integers | |:---:|

  • Safe primes generation.
  • Integer encoding: wNAF, regular signed digit, mLSBSet representations.
| Finite Fields | |:---:|

- Fp25519, Fp448, Fp511, Fp434, Fp503, Fp751. - Fp381, and its quadratic, sextic and twelveth extensions. - Polynomials in monomial and Lagrange basis.

| Elliptic Curves | |:---:|

- P-384 Curve - FourQ - Goldilocks - BLS12-381

Testing and Benchmarking

Library comes with number of make targets which can be used for testing and benchmarking:

  • `test performs testing of the binary.
  • bench runs benchmarks.
  • cover produces coverage.
  • lint` runs set of linters on the code base.

Contributing

To contribute, fork this repository and make your changes, and then make a Pull Request. A Pull Request requires approval of the admin team and a successful CI build.

How to Cite

To cite CIRCL, use one of the following formats and update the version and date you accessed this project.

APA Style

Faz-Hernandez, A. and Kwiatkowski, K. (2019). Introducing CIRCL:
An Advanced Cryptographic Library. Cloudflare. Available at
https://github.com/cloudflare/circl. v1.6.4 Accessed Jun, 2026.

BibTeX Source

@manual{circl,
  title        = {Introducing CIRCL: An Advanced Cryptographic Library},
  author       = {Armando Faz-Hernandez and Kris Kwiatkowski},
  organization = {Cloudflare},
  abstract     = {{CIRCL (Cloudflare Interoperable, Reusable Cryptographic Library) is
                   a collection of cryptographic primitives written in Go. The goal
                   of this library is to be used as a tool for experimental
                   deployment of cryptographic algorithms targeting Post-Quantum (PQ)
                   and Elliptic Curve Cryptography (ECC).}},
  note         = {Available at \url{https://github.com/cloudflare/circl}. v1.6.4 Accessed Jun, 2026},
  month        = jun,
  year         = {2019}
}

CFF Style

See attached CITATION.cff file.

License

The project is licensed under the BSD-3-Clause License.

🔗 More in this category

© 2026 GitRepoTrend · cloudflare/circl · Updated daily from GitHub