Project import generated by Copybara. GitOrigin-RevId: 8e45d682af0c4329d479cb7a1e0b83d70c9a94f3 Change-Id: I81aa3256a4bd578d47e2743b4e67c74cb24823f9
diff --git a/nearby/crypto/crypto_provider_rustcrypto/Cargo.toml b/nearby/crypto/crypto_provider_rustcrypto/Cargo.toml new file mode 100644 index 0000000..ad5a4b8 --- /dev/null +++ b/nearby/crypto/crypto_provider_rustcrypto/Cargo.toml
@@ -0,0 +1,37 @@ +[package] +name = "crypto_provider_rustcrypto" +version.workspace = true +edition.workspace = true +publish.workspace = true + +[dependencies] +aead = "0.5.1" +aes-gcm-siv = { version = "0.11.1", features = ["aes"], optional = true } +crypto_provider.workspace = true +hmac.workspace = true +hkdf.workspace = true +sha2.workspace = true +x25519-dalek.workspace = true +p256 = { workspace = true, features = ["ecdh"], default-features = false } +sec1.workspace = true +ed25519-dalek = { workspace = true, default-features = false } +rand = { workspace = true, default-features = false } +rand_core_05_adapter.workspace = true +rand_core.workspace = true +subtle.workspace = true +aes.workspace = true +ctr.workspace = true +cbc.workspace = true +cfg-if.workspace = true +rand_chacha = { workspace = true, default-features = false, optional = true } + +[dev-dependencies] +hex.workspace = true +crypto_provider = { workspace = true, features = ["testing"] } +crypto_provider_rustcrypto = { path = ".", features = ["std"] } + +[features] +default = ["alloc", "gcm_siv", "rand_chacha"] +std = ["ed25519-dalek/default", "rand/std", "rand/std_rng", "crypto_provider/std", "crypto_provider/alloc"] +alloc = ["aead/bytes"] +gcm_siv = ["crypto_provider/gcm_siv", "dep:aes-gcm-siv"]