2023-12-18 02:57:51 +03:00
|
|
|
[package]
|
2024-08-22 18:11:30 +03:00
|
|
|
name = "sword_crypto"
|
2023-12-18 02:57:51 +03:00
|
|
|
version = "0.1.0"
|
|
|
|
edition = "2021"
|
|
|
|
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
|
|
|
[dependencies]
|
2024-08-22 18:11:30 +03:00
|
|
|
assert_no_alloc = { path = "../assert_no_alloc" }
|
|
|
|
ibig = { path = "../ibig" }
|
2023-12-20 18:24:34 +03:00
|
|
|
|
2023-12-20 19:13:28 +03:00
|
|
|
# ed25519
|
|
|
|
curve25519-dalek = {version = "4.1.1", default-features = false, optional = true }
|
|
|
|
ed25519-dalek = { version = "2.1.0", default-features = false, optional = true }
|
2023-12-20 18:24:34 +03:00
|
|
|
x25519-dalek = { version = "2.0.0", features = ["static_secrets"], default-features = false, optional = true}
|
|
|
|
|
2023-12-20 19:13:28 +03:00
|
|
|
# aes_siv
|
|
|
|
aes = { version = "0.8.3", default-features = false, optional = true }
|
|
|
|
aes-siv = { version = "0.7.0", default-features = false, optional = true }
|
2023-12-20 18:24:34 +03:00
|
|
|
|
2023-12-20 19:13:28 +03:00
|
|
|
# sha
|
|
|
|
sha1 = { version = "0.10.6", default-features = false, optional = true }
|
|
|
|
sha2 = { version = "0.10.8", default-features = false, optional = true }
|
2023-12-20 18:24:34 +03:00
|
|
|
|
2023-12-21 22:32:38 +03:00
|
|
|
# test_vs_urcrypt
|
2024-02-08 06:34:51 +03:00
|
|
|
# XX: can be removed once stable
|
2024-03-08 21:10:04 +03:00
|
|
|
# rand = { version = "0.8.4", default-features = false, features = ["getrandom"], optional = true }
|
|
|
|
# urcrypt-sys = { version = "0.1.1", optional = true }
|
2023-12-18 02:57:51 +03:00
|
|
|
|
|
|
|
[features]
|
2024-01-10 19:52:03 +03:00
|
|
|
default = ["aes_siv", "ed25519", "sha"]
|
2023-12-20 18:24:34 +03:00
|
|
|
aes_siv = ["aes", "aes-siv"]
|
|
|
|
ed25519 = ["curve25519-dalek", "ed25519-dalek", "x25519-dalek"]
|
|
|
|
sha = ["sha1", "sha2"]
|
2024-02-08 06:34:51 +03:00
|
|
|
# XX: can be removed once stable
|
2024-03-08 21:10:04 +03:00
|
|
|
# test_vs_urcrypt = ["urcrypt-sys", "rand"]
|