elligator2 0.1.0

Elligator2 for Curve25519: encode X25519 public keys as uniform random bit strings and back. Built on fiat-crypto's formally verified field arithmetic, differentially tested, no_std.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85"
name = "elligator2"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Elligator2 for Curve25519: encode X25519 public keys as uniform random bit strings and back. Built on fiat-crypto's formally verified field arithmetic, differentially tested, no_std."
documentation = "https://docs.rs/elligator2"
readme = "README.md"
keywords = [
    "elligator",
    "curve25519",
    "x25519",
    "obfuscation",
    "censorship",
]
categories = [
    "cryptography",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/adezdev/elligator2"

[package.metadata.docs.rs]
all-features = true

[features]
default = ["keygen"]
keygen = [
    "dep:curve25519-dalek",
    "dep:rand_core",
    "dep:zeroize",
]
x25519 = [
    "keygen",
    "dep:x25519-dalek",
]

[lib]
name = "elligator2"
path = "src/lib.rs"

[[test]]
name = "differential"
path = "tests/differential.rs"

[dependencies.curve25519-dalek]
version = "5.0"
optional = true
default-features = false

[dependencies.fiat-crypto]
version = "0.3"
default-features = false

[dependencies.rand_core]
version = "0.10"
optional = true
default-features = false

[dependencies.subtle]
version = "2.6"
default-features = false

[dependencies.x25519-dalek]
version = "3.0"
features = ["static_secrets"]
optional = true
default-features = false

[dependencies.zeroize]
version = "1.9"
features = ["derive"]
optional = true
default-features = false

[dev-dependencies.curve25519-elligator2]
version = "0.1.0-alpha.2"

[dev-dependencies.rand]
version = "0.10"
features = ["chacha"]