-
Notifications
You must be signed in to change notification settings - Fork 180
Expand file tree
/
Copy pathCargo.toml
More file actions
91 lines (77 loc) · 3.72 KB
/
Cargo.toml
File metadata and controls
91 lines (77 loc) · 3.72 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
90
91
[package]
name = "rsa"
version = "0.10.0-pre.4"
authors = ["RustCrypto Developers", "dignifiedquire <dignifiedquire@gmail.com>"]
edition = "2021"
description = "Pure Rust RSA implementation"
license = "MIT OR Apache-2.0"
documentation = "https://docs.rs/rsa"
repository = "https://github.com/RustCrypto/RSA"
keywords = ["rsa", "encryption", "security", "crypto"]
categories = ["cryptography"]
readme = "README.md"
rust-version = "1.83"
[dependencies]
rand_core = { version = "0.9.0", default-features = false }
const-oid = { version = "0.10.0", default-features = false }
subtle = { version = "2.6.1", default-features = false }
digest = { version = "=0.11.0-pre.10", default-features = false, features = ["alloc", "oid"] }
pkcs1 = { version = "0.8.0-rc.1", default-features = false, features = ["alloc", "pkcs8"] }
pkcs8 = { version = "0.11.0-rc.2", default-features = false, features = ["alloc"] }
signature = { version = "=2.3.0-pre.6", default-features = false, features = ["alloc", "digest", "rand_core"] }
spki = { version = "0.8.0-rc.1", default-features = false, features = ["alloc"] }
zeroize = { version = "1.5", features = ["alloc"] }
crypto-bigint = { version = "0.7.0-pre", default-features = false, features = ["zeroize", "alloc"] }
crypto-primes = { version = "0.7.0-dev", default-features = false }
# optional dependencies
sha1 = { version = "=0.11.0-pre.5", optional = true, default-features = false, features = ["oid"] }
serdect = { version = "0.3.0", optional = true }
sha2 = { version = "=0.11.0-pre.5", optional = true, default-features = false, features = ["oid"] }
serde = { version = "1.0.184", optional = true, default-features = false, features = ["derive"] }
[dev-dependencies]
base64ct = { version = "1", features = ["alloc"] }
hex-literal = "1"
proptest = "1"
serde_test = "1.0.89"
rand_xorshift = "0.4"
rand_chacha = "0.9"
rand = "0.9"
rand_core = { version = "0.9.1", default-features = false }
sha1 = { version = "=0.11.0-pre.5", default-features = false, features = ["oid"] }
sha2 = { version = "=0.11.0-pre.5", default-features = false, features = ["oid"] }
sha3 = { version = "=0.11.0-pre.5", default-features = false, features = ["oid"] }
hex = { version = "0.4.3", features = ["serde"] }
serde_json = "1.0.138"
serde = { version = "1.0.184", features = ["derive"] }
[[bench]]
name = "key"
[features]
default = ["std", "pem"]
hazmat = []
getrandom = ["rand_core/os_rng", "crypto-bigint/rand_core"]
serde = ["dep:serde", "dep:serdect", "crypto-bigint/serde"]
pem = ["pkcs1/pem", "pkcs8/pem"]
pkcs5 = ["pkcs8/encryption"]
std = ["digest/std", "pkcs1/std", "pkcs8/std", "rand_core/std", "signature/std", "crypto-bigint/rand"]
[package.metadata.docs.rs]
features = ["std", "pem", "serde", "hazmat", "sha2"]
rustdoc-args = ["--cfg", "docsrs"]
[profile.dev]
opt-level = 2
[profile.bench]
debug = true
[patch.crates-io]
# https://github.com/RustCrypto/crypto-bigint/pull/762
# https://github.com/RustCrypto/crypto-bigint/pull/765
crypto-bigint = { git = "https://github.com/RustCrypto/crypto-bigint.git" }
# https://github.com/entropyxyz/crypto-primes/pull/74
crypto-primes = { git = "https://github.com/entropyxyz/crypto-primes.git" }
signature = { git = "https://github.com/RustCrypto/traits.git" }
der = { git = "https://github.com/RustCrypto/formats.git" }
pkcs1 = { git = "https://github.com/RustCrypto/formats.git" }
pkcs5 = { git = "https://github.com/RustCrypto/formats.git" }
pkcs8 = { git = "https://github.com/RustCrypto/formats.git" }
# https://github.com/RustCrypto/password-hashes/pull/577
# https://github.com/RustCrypto/password-hashes/pull/578
pbkdf2 = { git = "https://github.com/baloo/password-hashes.git", branch = "baloo/hmac-0.13.0-pre.5" }
scrypt = { git = "https://github.com/baloo/password-hashes.git", branch = "baloo/hmac-0.13.0-pre.5" }