Skip to content

Commit 96f9ade

Browse files
committed
Create credentials
Signed-off-by: Arthur Gautier <[email protected]>
1 parent 7f416f2 commit 96f9ade

File tree

9 files changed

+1182
-6
lines changed

9 files changed

+1182
-6
lines changed

Cargo.lock

Lines changed: 143 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ p256 = { git = "https://github.com/RustCrypto/elliptic-curves.git" }
1010
p384 = { git = "https://github.com/RustCrypto/elliptic-curves.git" }
1111
p521 = { git = "https://github.com/RustCrypto/elliptic-curves.git" }
1212
sm2 = { git = "https://github.com/RustCrypto/elliptic-curves.git" }
13+
14+
concat-kdf = { git = "https://github.com/RustCrypto/KDFs.git" }
15+
16+
rsa = { git = "https://github.com/RustCrypto/RSA.git" }

tss-esapi/Cargo.toml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,13 @@ num-derive = "0.4.2"
3232
num-traits = "0.2.12"
3333
hostname-validator = "1.1.0"
3434
regex = "1.3.9"
35-
zeroize = { version = "1.5.7", features = ["zeroize_derive"] }
35+
zeroize = { version = "1.8.2", features = ["zeroize_derive"] }
3636
tss-esapi-sys = { path = "../tss-esapi-sys", version = "0.5.0" }
3737
x509-cert = { version = "0.3.0-rc.1", optional = true }
38+
aes = { version = "0.9.0-rc.1", optional = true }
39+
byte-strings = { version = "0.3.1", optional = true }
40+
cipher = { version = "0.5.0-rc.1", optional = true }
41+
cfb-mode = { version = "0.9.0-rc.1", optional = true }
3842
ecdsa = { version = "0.17.0-rc.0", features = [
3943
"der",
4044
"hazmat",
@@ -45,6 +49,7 @@ elliptic-curve = { version = "0.14.0-rc.15", optional = true, features = [
4549
"alloc",
4650
"pkcs8",
4751
] }
52+
hmac = { version = "0.13.0-rc.0", optional = true }
4853
p192 = { version = "0.14.0-pre", optional = true }
4954
p224 = { version = "0.14.0-pre", optional = true }
5055
p256 = { version = "0.14.0-pre.11", optional = true }
@@ -62,14 +67,20 @@ signature = { version = "3.0.0-rc.0", features = [
6267
"alloc",
6368
"digest",
6469
], optional = true }
70+
kbkdf = { version = "0.0.1", optional = true }
71+
concat-kdf = { version = "0.2.0-pre", optional = true }
6572
cfg-if = "1.0.0"
6673
strum = { version = "0.26.3", optional = true }
6774
strum_macros = { version = "0.26.4", optional = true }
6875
paste = "1.0.14"
6976
getrandom = "0.3"
77+
rand = "0.9"
7078

7179
[dev-dependencies]
80+
aes = "0.9.0-pre.2"
7281
env_logger = "0.11.5"
82+
hex-literal = "1"
83+
rsa = { version = "0.10.0-pre.3" }
7384
serde_json = "^1.0.108"
7485
sha2 = { version = "0.11.0-rc.2", features = ["oid"] }
7586
tss-esapi = { path = ".", features = [
@@ -89,16 +100,24 @@ default = ["abstraction"]
89100
generate-bindings = ["tss-esapi-sys/generate-bindings"]
90101
abstraction = ["rustcrypto"]
91102
integration-tests = ["strum", "strum_macros"]
103+
92104
rustcrypto = [
105+
"byte-strings",
106+
"cfb-mode",
107+
"cipher",
108+
"concat-kdf",
93109
"digest",
94110
"ecdsa",
95-
"elliptic-curve",
111+
"elliptic-curve/ecdh",
112+
"hmac",
113+
"kbkdf",
96114
"pkcs8",
97115
"signature",
98116
"x509-cert",
99117
]
100118
rustcrypto-full = [
101119
"rustcrypto",
120+
"aes",
102121
"p192",
103122
"p224",
104123
"p256",
@@ -111,6 +130,8 @@ rustcrypto-full = [
111130
"sm2",
112131
"sm3",
113132
]
133+
134+
rsa = ["dep:rsa", "kbkdf"]
114135
sha1 = ["dep:sha1", "rsa?/sha1"]
115136
sha2 = ["dep:sha2", "rsa?/sha2"]
116137
bundled = ["tss-esapi-sys/bundled"]

0 commit comments

Comments
 (0)