@@ -22,6 +22,7 @@ required-features = ["abstraction"]
22
22
[dependencies ]
23
23
bitfield = " 0.17.0"
24
24
serde = { version = " 1.0.115" , features = [
25
+ " alloc" ,
25
26
" derive" ,
26
27
], optional = true , default-features = false }
27
28
malloced = " 1.3.1"
@@ -33,9 +34,23 @@ hostname-validator = "1.1.0"
33
34
regex = " 1.3.9"
34
35
zeroize = { version = " 1.5.7" , features = [" zeroize_derive" ] }
35
36
tss-esapi-sys = { path = " ../tss-esapi-sys" , version = " 0.5.0" }
36
- oid = { version = " 0.2.1" , optional = true }
37
- picky-asn1 = { version = " 0.9.0" , optional = true }
38
- picky-asn1-x509 = { version = " 0.13.0" , optional = true }
37
+ x509-cert = { version = " 0.2.0" , optional = true }
38
+ ecdsa = { version = " 0.16.9" , features = [" der" , " hazmat" , " arithmetic" , " verifying" ], optional = true }
39
+ elliptic-curve = { version = " 0.13.8" , optional = true , features = [" alloc" , " pkcs8" ] }
40
+ p192 = { version = " 0.13.0" , optional = true }
41
+ p224 = { version = " 0.13.2" , optional = true }
42
+ p256 = { version = " 0.13.2" , optional = true }
43
+ p384 = { version = " 0.13.0" , optional = true }
44
+ p521 = { version = " 0.13.3" , optional = true }
45
+ pkcs8 = { version = " 0.10.2" , optional = true }
46
+ rsa = { version = " 0.9" , optional = true }
47
+ sha1 = { version = " 0.10.6" , optional = true }
48
+ sha2 = { version = " 0.10.8" , optional = true }
49
+ sha3 = { version = " 0.10.8" , optional = true }
50
+ sm2 = { version = " 0.13.3" , optional = true }
51
+ sm3 = { version = " 0.4.2" , optional = true }
52
+ digest = { version = " 0.10.7" , optional = true }
53
+ signature = { version = " 2.2.0" , features = [" std" ], optional = true }
39
54
cfg-if = " 1.0.0"
40
55
strum = { version = " 0.26.3" , optional = true }
41
56
strum_macros = { version = " 0.26.4" , optional = true }
@@ -44,20 +59,24 @@ getrandom = "0.2.11"
44
59
45
60
[dev-dependencies ]
46
61
env_logger = " 0.11.5"
47
- sha2 = " 0.10.1"
48
62
serde_json = " ^1.0.108"
63
+ sha2 = { version = " 0.10.8" , features = [" oid" ] }
49
64
tss-esapi = { path = " ." , features = [
50
65
" integration-tests" ,
51
66
" serde" ,
52
67
" abstraction" ,
68
+ " rustcrypto-full" ,
53
69
] }
54
-
70
+ x509-cert = { version = " 0.2.0 " , features = [ " builder " ] }
55
71
56
72
[build-dependencies ]
57
73
semver = " 1.0.7"
58
74
59
75
[features ]
60
76
default = [" abstraction" ]
61
77
generate-bindings = [" tss-esapi-sys/generate-bindings" ]
62
- abstraction = [" oid " , " picky-asn1 " , " picky-asn1-x509 " ]
78
+ abstraction = [" rustcrypto " ]
63
79
integration-tests = [" strum" , " strum_macros" ]
80
+
81
+ rustcrypto = [" digest" , " ecdsa" , " elliptic-curve" , " pkcs8" , " signature" , " x509-cert" ]
82
+ rustcrypto-full = [" rustcrypto" , " p192" , " p224" , " p256" , " p384" , " p521" , " rsa" , " sha1" , " sha2" , " sha3" , " sm2" , " sm3" ]
0 commit comments