Files
ente/rust/Cargo.toml
Manav Rathi 48757af5d0 fix(rust): Fix SRP authentication implementation
Fixed issues preventing successful authentication:
- Corrected Argon2 memory limit handling (API sends bytes, not KB)
- Replaced Blake2b with crypto_kdf_derive_from_key for login subkey derivation
- Fixed serde field names to match API expectations (srpUserID, sessionID)
- Added non-interactive mode for CLI testing
- Added support for ENTE_ENDPOINT environment variable

The implementation now matches the web client's key derivation exactly,
enabling successful authentication with both local and production servers.

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-22 18:23:16 +05:30

62 lines
1.4 KiB
TOML

[package]
name = "ente-rs"
version = "0.0.1"
edition = "2024"
description = "Rust bindings and CLI for ente.io"
homepage = "https://ente.io"
repository = "https://github.com/ente-io/ente"
license = "AGPL-3.0-only"
[dependencies]
# CLI and configuration
clap = { version = "4.5", features = ["derive", "env"] }
config = "0.14"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
toml = "0.8"
# Async runtime and networking
tokio = { version = "1.41", features = ["full"] }
reqwest = { version = "0.12", features = ["json", "stream"] }
futures = "0.3"
# Cryptography - ONLY libsodium (statically linked)
libsodium-sys-stable = "1.20"
base64 = "0.22"
hex = "0.4"
zeroize = { version = "1.8", features = ["derive"] }
# SRP authentication
srp = "0.6"
srp6 = "1.0.0-beta.1"
num-bigint = { version = "0.4", features = ["rand"] }
sha2 = "0.10"
urlencoding = "2.1"
rand = "0.8"
# Storage
rusqlite = { version = "0.32", features = ["bundled", "serde_json"] }
sqlx = { version = "0.8", features = ["runtime-tokio", "sqlite", "migrate"], optional = true }
# Utilities
thiserror = "2.0"
anyhow = "1.0"
log = "0.4"
env_logger = "0.11"
dirs = "5.0"
chrono = "0.4"
uuid = { version = "1.11", features = ["serde", "v4"] }
rpassword = "7.3"
indicatif = "0.17"
dialoguer = "0.11"
# File operations
walkdir = "2.5"
zip = "2.2"
tempfile = "3.14"
[dev-dependencies]
mockito = "1.6"
tempdir = "0.3"