Skip to main content

Crate sntrup_sys

Crate sntrup_sys 

Source
Expand description

Rust FFI bindings over the extracted, deduplicated SUPERCOP Streamlined NTRU Prime sources in vendor/. Every module wraps one parameter set, all sharing one compiled copy of vendor/common/ (see vendor/NOTICE.md for why the split between shared and per-parameter- set code is drawn where it is). Each enabled parameter set gets its own module (gated by the matching Cargo feature), exposing keypair(), encapsulate(pk), and decapsulate(c, sk).

§Randomness

The vendored C code calls a single external randombytes C function for all key generation and encapsulation randomness. This crate implements it here using getrandom (the OS CSPRNG), satisfying the one external symbol every vendored directory expects (see vendor/NOTICE.md).

Modules§

sntrup653
sntrup761
sntrup857
sntrup953
sntrup1013
sntrup1277

Functions§

randombytes
Safety