Skip to content

Commit 2cc4f63

Browse files
committed
Bring rustcrypto ecosystem
Signed-off-by: Arthur Gautier <arthur.gautier@arista.com>
1 parent baf7f85 commit 2cc4f63

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tss-esapi/Cargo.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ required-features = ["abstraction"]
2222
[dependencies]
2323
bitfield = "0.17.0"
2424
serde = { version = "1.0.115", features = [
25+
"alloc",
2526
"derive",
2627
], optional = true, default-features = false }
2728
malloced = "1.3.1"
@@ -36,6 +37,22 @@ tss-esapi-sys = { path = "../tss-esapi-sys", version = "0.5.0" }
3637
oid = { version = "0.2.1", optional = true }
3738
picky-asn1 = { version = "0.9.0", optional = true }
3839
picky-asn1-x509 = { version = "0.13.0", optional = true }
40+
x509-cert = { version = "0.2.0", optional = true }
41+
ecdsa = { version = "0.16.9", features = ["der", "hazmat", "arithmetic", "verifying"], optional = true }
42+
elliptic-curve = { version = "0.13.8", optional = true, features = ["alloc", "pkcs8"] }
43+
p192 = { version = "0.13.0", optional = true }
44+
p224 = { version = "0.13.2", optional = true }
45+
p256 = { version = "0.13.2", optional = true }
46+
p384 = { version = "0.13.0", optional = true }
47+
p521 = { version = "0.13.3", optional = true }
48+
rsa = { version = "0.9", optional = true }
49+
sha1 = { version = "0.10.6", optional = true }
50+
sha2 = { version = "0.10.8", optional = true }
51+
sha3 = { version = "0.10.8", optional = true }
52+
sm2 = { version = "0.13.3", optional = true }
53+
sm3 = { version = "0.4.2", optional = true }
54+
digest = "0.10.7"
55+
signature = { version = "2.2.0", features = ["std"], optional = true}
3956
cfg-if = "1.0.0"
4057
strum = { version = "0.26.3", optional = true }
4158
strum_macros = { version = "0.26.4", optional = true }
@@ -50,6 +67,7 @@ tss-esapi = { path = ".", features = [
5067
"integration-tests",
5168
"serde",
5269
"abstraction",
70+
"rustcrypto-full",
5371
] }
5472

5573

@@ -61,3 +79,6 @@ default = ["abstraction"]
6179
generate-bindings = ["tss-esapi-sys/generate-bindings"]
6280
abstraction = ["oid", "picky-asn1", "picky-asn1-x509"]
6381
integration-tests = ["strum", "strum_macros"]
82+
83+
rustcrypto = ["ecdsa", "elliptic-curve", "signature", "x509-cert"]
84+
rustcrypto-full = ["rustcrypto", "p192", "p224", "p256", "p384", "p521", "rsa", "sha1", "sha2", "sha3", "sm2", "sm3"]

0 commit comments

Comments
 (0)