talira

Cloudflare's Go library of post-quantum and elliptic curve cryptography

open sourceBSD-3-Clausefree

CIRCL (Cloudflare Interoperable, Reusable Cryptographic Library) is a collection of cryptographic primitives in Go, aimed at experimental deployment of post-quantum and elliptic curve algorithms. It has the NIST post-quantum standards ML-KEM, ML-DSA and SLH-DSA alongside X-Wing, FrodoKEM and CSIDH; X25519, X448, Ed25519, Ed448 and BLS signatures; prime groups with hash to curve; and protocols such as HPKE, VOPRF, RSA blind signatures, attribute-based encryption, threshold RSA and Prio3. Symmetric pieces include SHAKE, BLAKE2X, KangarooTwelve and Ascon. Cloudflare maintains it, and its Go fork shows how to build it into Go itself.

Problems it solves

  • use post-quantum key exchange in a Go program
  • sign with ML-DSA from Go
  • implement HPKE or an oblivious PRF in Go without writing the crypto myself

Features

  • ML-KEM, ML-DSA and SLH-DSA post-quantum algorithms (FIPS 203, 204, 205)
  • X25519, X448, Ed25519, Ed448 and BLS signatures
  • HPKE (RFC 9180), VOPRF (RFC 9497) and RSA blind signatures (RFC 9474)
  • hash to curve (RFC 9380), BLS12-381 pairings and Ristretto
  • zero-knowledge proofs, oblivious transfer, threshold RSA and Prio3
  • SHAKE, BLAKE2X, KangarooTwelve and Ascon

Limitations

  • Its makers ask for caution before using it in production, since part of it is experimental and its API may change.1
  • Not every package is constant time: group, oprf, partially blind RSA, secret sharing, threshold RSA, the zero-knowledge proofs and P-384 document operations that leak timing.1
  • SIDH/SIKE is included but insecure and deprecated.1