mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
* Added raw_sign() and raw_sign_prehashed() functions * Renamed `nonce` to `hash_prefix` in signing because it's really not a nonce * Moved raw signing to hazmat module * impl From<EdwardsPoint> for VerifyingKey * Brought back ExpandedSecretKey; made raw_* functions take it as input * Added remaining features to docs.rs feature set * Removed redundant ExpandedSecretKey def; made raw signing use a generic CtxDigest * Implemented raw_verify with generic CtxDigest * Implemented raw_verify_prehashed with generic MsgDigest and CtxDigest * Wrote hazmat tests; fixed errors; switched ordering of MsgDigest and CtxDigest * Updated changelog * ExpandedSecretKey::from_bytes takes an array and is now infallible * Add TODO comment for split_array_ref * Added from_slice and TryFrom<&[u8]> for ExpandedSecretKey --------- Co-authored-by: Tony Arcieri <bascule@gmail.com>
75 lines
2.6 KiB
TOML
75 lines
2.6 KiB
TOML
[package]
|
|
name = "ed25519-dalek"
|
|
version = "2.0.0-rc.2"
|
|
edition = "2021"
|
|
authors = [
|
|
"isis lovecruft <isis@patternsinthevoid.net>",
|
|
"Tony Arcieri <bascule@gmail.com>",
|
|
"Michael Rosenberg <michael@mrosenberg.pub>"
|
|
]
|
|
readme = "README.md"
|
|
license = "BSD-3-Clause"
|
|
repository = "https://github.com/dalek-cryptography/ed25519-dalek"
|
|
documentation = "https://docs.rs/ed25519-dalek"
|
|
keywords = ["cryptography", "ed25519", "curve25519", "signature", "ECC"]
|
|
categories = ["cryptography", "no-std"]
|
|
description = "Fast and efficient ed25519 EdDSA key generations, signing, and verification in pure Rust."
|
|
exclude = [ ".gitignore", "TESTVECTORS", "VALIDATIONVECTORS", "res/*" ]
|
|
rust-version = "1.60"
|
|
|
|
[package.metadata.docs.rs]
|
|
rustdoc-args = [
|
|
"--html-in-header", "docs/assets/rustdoc-include-katex-header.html",
|
|
"--cfg", "docsrs",
|
|
]
|
|
features = ["batch", "digest", "hazmat", "pem", "serde"]
|
|
|
|
[dependencies]
|
|
curve25519-dalek = { version = "=4.0.0-rc.2", default-features = false, features = ["digest"] }
|
|
ed25519 = { version = ">=2.2, <2.3", default-features = false }
|
|
signature = { version = ">=2.0, <2.1", optional = true, default-features = false }
|
|
sha2 = { version = "0.10", default-features = false }
|
|
|
|
# optional features
|
|
merlin = { version = "3", default-features = false, optional = true }
|
|
rand_core = { version = "0.6.4", default-features = false, optional = true }
|
|
serde = { version = "1.0", default-features = false, optional = true }
|
|
zeroize = { version = "1.5", default-features = false, optional = true }
|
|
|
|
[dev-dependencies]
|
|
curve25519-dalek = { version = "=4.0.0-rc.2", default-features = false, features = ["digest", "rand_core"] }
|
|
blake2 = "0.10"
|
|
sha3 = "0.10"
|
|
hex = "0.4"
|
|
bincode = "1.0"
|
|
serde_json = "1.0"
|
|
criterion = { version = "0.4", features = ["html_reports"] }
|
|
hex-literal = "0.3"
|
|
rand = "0.8"
|
|
rand_core = { version = "0.6.4", default-features = false }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
toml = { version = "0.5" }
|
|
|
|
[[bench]]
|
|
name = "ed25519_benchmarks"
|
|
harness = false
|
|
required-features = ["rand_core"]
|
|
|
|
[features]
|
|
default = ["fast", "std", "zeroize"]
|
|
alloc = ["curve25519-dalek/alloc", "ed25519/alloc", "serde?/alloc", "zeroize/alloc"]
|
|
std = ["alloc", "ed25519/std", "serde?/std", "sha2/std"]
|
|
|
|
asm = ["sha2/asm"]
|
|
batch = ["alloc", "merlin", "rand_core"]
|
|
fast = ["curve25519-dalek/precomputed-tables"]
|
|
digest = ["signature/digest"]
|
|
# Exposes the hazmat module
|
|
hazmat = []
|
|
# Turns off stricter checking for scalar malleability in signatures
|
|
legacy_compatibility = []
|
|
pkcs8 = ["ed25519/pkcs8"]
|
|
pem = ["alloc", "ed25519/pem", "pkcs8"]
|
|
rand_core = ["dep:rand_core"]
|
|
serde = ["dep:serde", "ed25519/serde"]
|
|
zeroize = ["dep:zeroize", "curve25519-dalek/zeroize"]
|