MCPcopy Create free account
hub / github.com/cloudflare/circl

github.com/cloudflare/circl

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.6.5 ↗ · + Follow · compare 2 versions
5,749 symbols 23,185 edges 603 files ⚖ BSD-2-Clause 2,373 documented · 41% updated 12d agov1.6.4 · 2026-06-22★ 1,70237 open issues

Browse by type

Functions 5,182 Types & classes 567
What it actually does AI analysis from the code graph — generated when you open this
loading…
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.

Constant-Time Caveats

⚠️ Not every package in CIRCL is constant time. The following packages document, at the top of their doc.go or main source file, the specific operations that are known to leak timing information: group/, oprf/, blindsign/blindrsa/partiallyblindrsa/, secretsharing/, tss/rsa/, zk/dl/, zk/dleq/, and ecc/p384/.

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

Elliptic Curve Cryptography

Diffie-Hellman Protocol
Digital Signature Schemes
Prime Groups
High-Level Protocols

Post-Quantum Cryptography

KEM: Key Encapsulation Methods
Digital Signature Schemes

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

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.

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Method 2,760
Function 2,422
Struct 385
TypeAlias 126
Interface 44
FuncType 12

Languages

Go100%

Modules by API surface

sign/slhdsa/state.go58 symbols
group/short.go58 symbols
group/ristretto255.go50 symbols
vdaf/prio3/arith/arith.go44 symbols
group/group.go42 symbols
vdaf/prio3/internal/prio3/prio3.go40 symbols
sign/mldsa/mldsa87/dilithium.go40 symbols
sign/mldsa/mldsa65/dilithium.go40 symbols
sign/mldsa/mldsa44/dilithium.go40 symbols
sign/dilithium/mode5/dilithium.go37 symbols
sign/dilithium/mode3/dilithium.go37 symbols
sign/dilithium/mode2/dilithium.go37 symbols

Dependencies from manifests, versioned

golang.org/x/cryptov0.54.0 · 1×
golang.org/x/modv0.14.0 · 1×
golang.org/x/sysv0.47.0 · 1×
golang.org/x/toolsv0.16.1 · 1×

For agents

$ claude mcp add circl \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page