#constant-time #utilities

macro no-std subtle-derive

Pure-Rust traits and utilities for constant-time cryptographic implementations

1 unstable release

Uses old Rust 2015

0.1.0 Jul 31, 2017

#66 in #constant-time

CC0 license

4KB

subtle

Procedural macros for deriving subtle trait implementations.

Warning

This code has not yet received sufficient peer review by other qualified cryptographers to be considered in any way, shape, or form, safe. Further, this library does not provide much in the way of assurance against deliberate misuse. Instead, it is a low-level library, mostly of bit-flipping tricks, intended for other cryptographers who would like to implement their own constant-time libraries. (For an example usage of this library, please see curve25519-dalek and ed25519-dalek.)

USE AT YOUR OWN RISK

Documentation

Extensive documentation is available here.

Installation

To install, add the following to the dependencies section of your project's Cargo.toml:

subtle-derive = "^0.1"

Then, in your library or executable source, add:

#[macro_use]
extern crate subtle_derive

Dependencies

~360–800KB
~18K SLoC