Skip to content

kevin-he-01/vroomssl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modified BoringSSL for VROOM

WARNING: This is not a production-ready library.

This is software for a research prototype. Please do NOT use this code in production.

We only performed minimal testing that are necessary to ensure the validity of our benchmark claims (to the best of our knowledge), using only random inputs to select functions. Therefore, the software may contain (but is not limited to) memory leaks, memory errors (e.g., null pointer dereference), and other (security) bugs/vulnerabilities, especially when used as a library in untested use cases.

Background

This is an artifact repository for "VROOM: Accelerating (Almost All) Number-Theoretic Cryptography Using Vectorization and the Residue Number System", a new modular multiplication algorithm based on a work in submission, and will appear soon in the Cryptology ePrint Archive.

In this artifact, we forked commit 3fb010b from upstream BoringSSL, and modified it to use VROOM for modular multiplication.

Prerequisites

For convenience, this repository also benchmarks FLINT as a baseline, which means that you need to ensure FLINT and GMP are in your system as dependencies, in addition to all dependencies required by unmodified BoringSSL. Note our VROOM code does not rely on GMP or FLINT, instead using subroutines in BoringSSL (BN_*), and carefully ensured that we call only constant-time routines in BoringSSL in code that does multiplication and conversions between radix and RNS form, to the best of our knowledge.

Build instructions

We tested the build using clang 21.1.8 compiled from source, running Amazon Linux 2023 on an AWS c7i.metal-24xl instance.

To build the library for benchmarking, set environment variables CC and CXX to point to the clang and clang++ binaries (version 21.1.8), respectively, and pass the release build option to CMake (very important to ensure you can reproduce the accurate benchmark results):

export CC=clang
export CXX=clang++
cmake -GNinja -B build -DCMAKE_BUILD_TYPE=Release

Then, to reproduce our evaluation results, run the benchmark binary ./build/bssl_bench from the repository root. This will provide all the performance result of the original BoringSSL codepath in addition to that of VROOM.

The core VROOM code can be found in the subfolder rns/, and we made modifications to BoringSSL library sources that handle RSA signing and verification.

BoringSSL (original project README)

BoringSSL is a fork of OpenSSL that is designed to meet Google's needs.

Although BoringSSL is an open source project, it is not intended for general use, as OpenSSL is. We don't recommend that third parties depend upon it. Doing so is likely to be frustrating because there are no guarantees of API or ABI stability.

Programs ship their own copies of BoringSSL when they use it and we update everything as needed when deciding to make API changes. This allows us to mostly avoid compromises in the name of compatibility. It works for us, but it may not work for you.

BoringSSL arose because Google used OpenSSL for many years in various ways and, over time, built up a large number of patches that were maintained while tracking upstream OpenSSL. As Google's product portfolio became more complex, more copies of OpenSSL sprung up and the effort involved in maintaining all these patches in multiple places was growing steadily.

Currently BoringSSL is the SSL library in Chrome/Chromium, Android (but it's not part of the NDK) and a number of other apps/programs.

Project links:

To file a security issue, use the Chromium process and mention in the report this is for BoringSSL. You can ignore the parts of the process that are specific to Chromium/Chrome.

There are other files in this directory which might be helpful:

Releases

No releases published

Packages

 
 
 

Contributors