-
Notifications
You must be signed in to change notification settings - Fork 8
/
Cargo.toml
55 lines (52 loc) · 2.07 KB
/
Cargo.toml
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
[package]
authors = ["Michael Lodder <[email protected]>"]
categories = ["cryptography"]
description = """A crate for working with finite fields where the modulus is of unknown order,
typtical for RSA, Paillier, Hyperelliptic curves, etc.
"""
documentation = "https://docs.rs/unknown_order"
edition = "2021"
exclude = [
"*.sh",
".git",
".gitignore",
".github/",
"tests/",
]
keywords = ["cryptography", "rsa", "bignum", "gmp", "security"]
license = "Apache-2.0 OR MIT"
name = "unknown_order"
readme = "README.md"
repository = "https://github.com/mikelodder7/unknown_order"
version = "0.10.1"
[features]
default = ["crypto"]
crypto = ["crypto-bigint/serde", "crypto-bigint/default", "crypto-primes", "hex", "multibase", "num-traits"]
gmp = ["hex", "rand/default", "rug/num-traits", "num-traits"]
openssl = ["dep:openssl", "rand/default"]
rust = ["glass_pumpkin", "num-bigint", "num-integer", "num-traits", "rand/default"]
wasm = ["getrandom", "wasm-bindgen", "serde-wasm-bindgen"]
[dependencies]
crypto-bigint = { version = "0.5", features = ["zeroize"], optional = true }
crypto-primes = { version = "0.5", optional = true }
digest = "0.10"
getrandom = { version = "0.2", features = ["js"], optional = true }
glass_pumpkin = { version = "1.7", optional = true }
hex = { version = "0.4", optional = true }
multibase = { version = "0.9", default-features = false, optional = true }
num-bigint = { version = "0.4", optional = true }
num-integer = { version = "0.1", optional = true }
num-traits = { version = "0.2", optional = true }
openssl = { version = "^0.10.64", optional = true }
rand = { version = "0.8", default-features = false }
rug = { version = "1.24", default-features = false, features = ["integer", "rand", "std"], optional = true }
serde = { version = "1.0", features = ["alloc", "serde_derive"] }
subtle = "2.5"
wasm-bindgen = { version = "0.2", default-features = false, features = ["serde-serialize"], optional = true }
zeroize = "1"
serde-wasm-bindgen = { version = "0.6", optional = true }
[dev-dependencies]
blake2 = "0.10"
multibase = "0.9"
serde_json = "1.0"
bincode = "1.3"