Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
89 lines (79 loc) · 2.55 KB
/
Copy pathCargo.toml
File metadata and controls
89 lines (79 loc) · 2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[workspace]
package.version = "0.10.3"
members = [
"cli",
"ffi",
"fuzz",
"python",
"uniffi/uniffi-bindgen",
"uniffi/devolutions-crypto-uniffi",
]
default-members = [
".",
"python",
]
[workspace.dependencies]
uniffi = "0.32.0"
rust-argon2 = { version = "3.0", default-features = false }
[package]
name = "devolutions-crypto"
version.workspace = true
authors = ["Mathieu Morrissette <mmorrissette@devolutions.net>", "Sebastien Duquette <sduquette@devolutions.net>"]
edition = "2024"
rust-version = "1.85"
readme = "README_RUST.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/Devolutions/devolutions-crypto"
description = "An abstraction layer for the cryptography used by Devolutions"
resolver = "2"
[lib]
name = "devolutions_crypto"
crate-type = ["cdylib", "rlib"]
[dependencies]
aead-stream = { version = "0.6", features = ["alloc"] }
aes = "0.9"
base64 = "0.22"
cbc = { version = "0.2", features = ["block-padding", "alloc"] }
byteorder = "1"
chacha20poly1305 = { version = "0.11", features = ["zeroize"] }
cfg-if = "1"
hmac = "0.13"
num_enum = "0.7"
pbkdf2 = { version = "0.13", default-features = false }
scrypt = { version = "0.12", default-features = false }
blahaj = { version = "0.6", default-features = false, features = ["zeroize_memory"] }
sha2 = "0.11"
strum = { version = "0.28", features = ["derive"] }
subtle = "2"
zeroize = { version = "1.8", features = ["derive"] }
rand = "0.10"
rand_08 = { package = "rand", version = "0.8" }
thiserror = "2.0.12"
typed-builder = "0.23.2"
rust-argon2 = { workspace = true }
ed25519-dalek = { version = "3", features = [ "rand_core" ] }
x25519-dalek = { version = "3", features = [ "static_secrets" ] }
# Do not enable the `getrandom` feature:
# randomness is supplied explicitly from the OS RNG.
x-wing = { version = "0.1.1", default-features = false, features = ["zeroize"] }
hkdf = "0.13"
# used for fuzzing
arbitrary = { version = "1", features = ["derive"], optional = true }
blake3 = { version = "1.8", features = ["zeroize"] }
paste = "1.0.15"
dyn-clone = "1.0"
[target.wasm32-unknown-unknown.dependencies]
wasm-bindgen = { version = "0.2.100", optional = true }
serde-wasm-bindgen = { version = "0.6.5", optional = true }
js-sys = { version = "0.3.77", optional = true }
getrandom = { version = "0.4", features = ["wasm_js"] }
[target.wasm32-unknown-unknown.dev-dependencies]
wasm-bindgen-test = "0.3"
[features]
default = []
fuzz = ["arbitrary", "blahaj/fuzzing"]
wbindgen = ["wasm-bindgen", "serde-wasm-bindgen", "js-sys"]
[dependencies.getrandom_v02]
package = "getrandom"
version = "0.2"
features = ["js"]