#elliptic-curve #curve #elliptic #bindings #ecc

sys xs233-sys

FFI bindings for the xs233 binary elliptic curves

2 unstable releases

0.2.0 Jun 1, 2023
0.1.0 May 11, 2023

#13 in #elliptic

Download history 6/week @ 2024-02-18 28/week @ 2024-02-25 7/week @ 2024-03-03 7/week @ 2024-03-10 1/week @ 2024-03-17 5/week @ 2024-03-24 40/week @ 2024-03-31

55 downloads per month
Used in 2 crates (via xs233)

AGPL-3.0-or-later

180KB
4K SLoC

C 4K SLoC // 0.2% comments Rust 105 SLoC // 0.0% comments

xs233-sys

A low-level FFI crate for c-xs233, which implements the curves in this paper.

c-xs233 implements binary elliptic curves with ~112 bits of security. Binary elliptic curves are defined over binary fields instead of prime fields. More or less all commonly used curves are defined over prime fields. This is not because binary fields are inherently less secure. There are theoretical results that indicate that there might be a security difference, but there are no practical attacks. In the 1990s binary elliptic curves were covered by patents, but it seems like these are not relevant anymore (I am not a lawyer).

No runtime deps

~0–2MB
~39K SLoC