mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
97 lines
2.6 KiB
TOML
97 lines
2.6 KiB
TOML
[package]
|
|
name = "curve25519-dalek"
|
|
version = "0.5.0"
|
|
authors = ["Isis Lovecruft <isis@patternsinthevoid.net>",
|
|
"Henry de Valence <hdevalence@hdevalence.ca>"]
|
|
readme = "README.md"
|
|
license = "CC0-1.0"
|
|
repository = "https://github.com/isislovecruft/curve25519-dalek"
|
|
homepage = "https://code.ciph.re/isis/curve25519-dalek"
|
|
documentation = "https://docs.rs/curve25519-dalek"
|
|
categories = ["cryptography", "no-std"]
|
|
keywords = ["cryptography", "curve25519", "elliptic", "curve", "ECC"]
|
|
description = "A low-level cryptographic library for point, group, field, and scalar operations on a curve isomorphic to the twisted Edwards curve defined by -x²+y² = 1 - 121665/121666 x²y² over GF(2²⁵⁵ - 19)."
|
|
exclude = [
|
|
".gitignore"
|
|
]
|
|
|
|
[dependencies.arrayref]
|
|
version = "0.3.3"
|
|
|
|
[dependencies.rand]
|
|
optional = true
|
|
version = "0.3"
|
|
|
|
[dependencies.digest]
|
|
version = "0.4"
|
|
|
|
[dependencies.generic-array]
|
|
# same version that digest depends on
|
|
version = "^0.6"
|
|
|
|
[dev-dependencies.sha2]
|
|
version = "0.4"
|
|
|
|
[features]
|
|
nightly = ["basepoint_table_creation"]
|
|
default = ["std", "radix_25_5"]
|
|
std = ["rand"]
|
|
yolocrypto = []
|
|
# Needs nightly for placement new
|
|
basepoint_table_creation = []
|
|
# Radix-51 arithmetic using u128
|
|
radix_51 = []
|
|
# Radix-25.5 arithmetic using i64
|
|
radix_25_5 = []
|
|
|
|
# The development profile, used for `cargo build`.
|
|
[profile.dev]
|
|
opt-level = 0 # controls the `--opt-level` the compiler builds with
|
|
debug = true # controls whether the compiler passes `-g`
|
|
rpath = false # controls whether the compiler passes `-C rpath`
|
|
lto = false # controls `-C lto` for binaries and staticlibs
|
|
debug-assertions = true # controls whether debug assertions are enabled
|
|
codegen-units = 1 # controls whether the compiler passes `-C codegen-units`
|
|
# `codegen-units` is ignored when `lto = true`
|
|
panic = 'unwind' # panic strategy (`-C panic=...`), can also be 'abort'
|
|
|
|
# The release profile, used for `cargo build --release`.
|
|
[profile.release]
|
|
opt-level = 3
|
|
debug = false
|
|
rpath = false
|
|
lto = false
|
|
debug-assertions = false
|
|
codegen-units = 1
|
|
panic = 'unwind'
|
|
|
|
# The testing profile, used for `cargo test`.
|
|
[profile.test]
|
|
opt-level = 0
|
|
debug = true
|
|
rpath = false
|
|
lto = false
|
|
debug-assertions = true
|
|
codegen-units = 1
|
|
panic = 'unwind'
|
|
required-features = ['yolocrypto']
|
|
|
|
# The benchmarking profile, used for `cargo bench`.
|
|
[profile.bench]
|
|
opt-level = 3
|
|
debug = false
|
|
rpath = false
|
|
lto = false
|
|
debug-assertions = false
|
|
codegen-units = 1
|
|
panic = 'unwind'
|
|
|
|
# The documentation profile, used for `cargo doc`.
|
|
[profile.doc]
|
|
opt-level = 0
|
|
debug = true
|
|
rpath = false
|
|
lto = false
|
|
debug-assertions = true
|
|
codegen-units = 1
|
|
panic = 'unwind'
|