RepositoryC++CNChina
secretflow

secretflow/yacl

YACL (Yet Another Common crypto library) is a C++ library that contains cryptography, network and io modules which other SecretFlow code depends on.

129stars
82forks
3issues
5views

YACL (Yet Another Common crypto Library)

CircleCI OpenSSF Scorecard

Yacl is a C++ library that contains common cryptgraphy, network and io modules which other SecretFlow code depends on. The crypto modules in Yacl implement many state-of-art secure computation protocols, including primitives like OT, VOLE, TPRE, and tools like PRG, RO. Check the full list of Yacl's supported algorithms in ALGORITHMS.md.

Supported platforms:

Linux x86_64Linux aarch64macOS x86_64macOS Apple SiliconWindows x86_64Windows WSL2 x86_64
yesyesyes1yesnoyes1
  1. Yacl has not been thoroughly tested on these platforms.

Repo Layout

  • base: some basic types and utils in yacl.
  • crypto: crypto algorithms without link.
  • kernel: crypto kernel that includes link with (WIP) multi-thread support, i.e. OT, DPF.
  • io: a simple streaming-based io library.
  • link: a simple rpc-based MPI framework, providing the SPMD parallel programming capability.

Prerequisites

Getting Started

Yacl uses the bazel build system, you may use the following codes to build and test yacl modules. For more guidelines about how to develop on yacl, please check the Getting Started Guide.

License

See LICENSE and NOTICE.md

Similar Projects

Discover other similar projects and AI models.

RepositoryC++
randombit/botan

Cryptography Toolkit

3.4k
Nov 25, 2026
RepositoryC++
bitcoin/bitcoin

Bitcoin Core integration/staging tree

90.8k
Nov 26, 2026
RepositoryJavaScript
amark/gun

An open source cybersecurity protocol for syncing decentralized graph data.

19.2k
Nov 21, 2026
RepositoryC++
weidai11/cryptopp

free C++ class library of cryptographic schemes

5.5k
Oct 2, 2026
RepositoryC++
homenc/HElib

HElib is an open-source software library that implements homomorphic encryption. It supports the BGV scheme with bootstrapping and the Approximate Number CKKS scheme. HElib also includes optimizations for efficient homomorphic evaluation, focusing on effective use of ciphertext packing techniques and on the Gentry-Halevi-Smart optimizations.

3.3k
Aug 1, 2024
RepositoryC++
osu-crypto/libOTe

A fast, portable, and easy to use Oblivious Transfer Library

508
Nov 29, 2026
RepositoryC++
emp-toolkit/emp-ot

Oblivious Transfer, Oblivious Transfer Extension and Variations

191
Nov 25, 2026
RepositoryJava
cryptomator/cryptomator

Cryptomator for Windows, macOS, and Linux: Secure client-side encryption for your cloud storage, ensuring privacy and control over your data.

16.6k
Nov 24, 2026
RepositoryC
jedisct1/libsodium

A modern, portable, easy to use crypto library.

14.1k
Nov 26, 2026