curve25519-dalek-source/curve25519-dalek/Cargo.toml

89 lines
2.9 KiB
TOML
Raw Normal View History

2016-12-08 05:12:00 +00:00
[package]
name = "curve25519-dalek"
2020-05-29 19:39:39 +00:00
# Before incrementing:
# - update CHANGELOG
# - update README if required by semver
version = "5.0.0-rc.0"
edition = "2024"
rust-version = "1.85.0"
2025-07-09 17:04:17 +00:00
authors = [
"Isis Lovecruft <isis@patternsinthevoid.net>",
"Henry de Valence <hdevalence@hdevalence.ca>",
]
2016-12-08 05:12:00 +00:00
readme = "README.md"
2017-08-01 02:05:31 +00:00
license = "BSD-3-Clause"
repository = "https://github.com/dalek-cryptography/curve25519-dalek/tree/main/curve25519-dalek"
homepage = "https://github.com/dalek-cryptography/curve25519-dalek"
2016-12-08 05:12:00 +00:00
documentation = "https://docs.rs/curve25519-dalek"
categories = ["cryptography", "no-std"]
2019-07-31 22:22:31 +00:00
keywords = ["cryptography", "crypto", "ristretto", "curve25519", "ristretto255"]
description = "A pure-Rust implementation of group operations on ristretto255 and Curve25519"
2025-07-09 17:04:17 +00:00
exclude = ["**/.gitignore", ".gitignore"]
2016-12-08 05:12:00 +00:00
[package.metadata.docs.rs]
2022-12-13 13:48:03 +00:00
rustdoc-args = [
2025-07-09 17:04:17 +00:00
"--html-in-header",
"docs/assets/rustdoc-include-katex-header.html",
"--cfg",
"docsrs",
]
all-features = true
[dev-dependencies]
ed25519-dalek: bump `ed25519` crate dependency to v3.0.0 (#903) * [WIP] ed25519-dalek: bump `ed25519` crate dependency to v3.0.0 This has two test failures: serialisation::serialize_deserialize_signature_json serialisation::serialize_signature_size These are due to a last minute change to use `serdect` for implementing `serde` support: RustCrypto/signatures#1324. The signature size regression from `64` to `72` is a deliberate tradeoff we've accepted in `serdect`. First note that this test is for now the unmaintained `bincode` crate. The core problem is that `serde` does not actually provide fixed-size arrays as a type within its data model (serde-rs/serde#1937) and you're instead left faking it using `SerializeTuple` and serializing it a byte-at-a-time as a tuple. While this gives optimal-sized results on `bincode`, it gives less-than-optimal results on e.g. `rmp-serde` where the bytes each end up tagged with a type prefix. `serde` does provide portable APIs for using optimal format-specific byte encodings, but they carry an additional length prefix, which is unnecessary and suboptimal for something fixed-width like an Ed25519 signature, but alas as noted earlier `serde` does not actually have fixed-width arrays in its data model. The second test failure occurs specifically because `serdect` introspects the format and uses `base16ct` to perform hex serialization for human readable formats. While this is a readability improvement for these formats (and also makes them easier to implement in constant-time, though it's not relevant here), the drawback is it currently requires the `alloc` feature for such formats, which is a regression: Error("serializer is human readable, which requires the `alloc` crate feature", line: 0, column: 0) Note that regardless these are both breaking changes to how `serde` serialization is handled. See also: - RustCrypto/formats#1111 - RustCrypto/formats#1112 - dalek-cryptography/ed25519-dalek#140 * Migrate bincode -> postcard * Bump `serdect` to v0.4.3 Includes `no_alloc` hex serialization support --------- Co-authored-by: Michael Rosenberg <mrosenberg@cloudflare.com>
2026-05-04 02:26:26 +00:00
postcard = { version = "1", features = ["alloc"] }
criterion = { version = "0.5", features = ["html_reports"] }
getrandom = { version = "0.4", features = ["sys_rng"] }
hex = "0.4.2"
proptest = "1"
sha2 = { version = "0.11", default-features = false }
[build-dependencies]
rustc_version = "0.4.0"
[[bench]]
name = "dalek_benchmarks"
harness = false
required-features = ["alloc", "rand_core"]
2017-10-23 21:03:23 +00:00
[dependencies]
cfg-if = "1"
ff = { version = "0.14", default-features = false, optional = true }
group = { version = "0.14", default-features = false, optional = true }
rand_core = { version = "0.10", default-features = false, optional = true }
digest = { version = "0.11", default-features = false, optional = true, features = ["block-api"] }
2025-07-09 17:04:17 +00:00
subtle = { version = "2.6.0", default-features = false, features = [
"const-generics",
] }
serde = { version = "1.0", default-features = false, optional = true, features = [
"derive",
] }
zeroize = { version = "1", default-features = false, optional = true }
2023-04-11 11:13:18 +00:00
[target.'cfg(target_arch = "x86_64")'.dependencies]
cpufeatures = "0.3"
[target.'cfg(curve25519_dalek_backend = "fiat")'.dependencies]
fiat-crypto = { version = "0.3.0", default-features = false }
[features]
default = ["alloc", "precomputed-tables", "zeroize"]
alloc = ["zeroize?/alloc"]
precomputed-tables = []
legacy_compatibility = []
group = ["dep:group", "rand_core"]
digest = ["dep:digest"]
lizard = ["digest"]
[target.'cfg(all(not(curve25519_dalek_backend = "fiat"), not(curve25519_dalek_backend = "serial"), target_arch = "x86_64"))'.dependencies]
curve25519-dalek-derive = "0.1"
[lints.rust.unexpected_cfgs]
level = "warn"
check-cfg = [
'cfg(allow_unused_unsafe)',
'cfg(curve25519_dalek_backend, values("fiat", "serial", "simd", "unstable_avx512"))',
'cfg(curve25519_dalek_diagnostics, values("build"))',
'cfg(curve25519_dalek_bits, values("32", "64"))',
'cfg(nightly)',
]