Skip to content

Commit d8a1637

Browse files
committed
Create credentials
Signed-off-by: Arthur Gautier <[email protected]>
1 parent 1b41789 commit d8a1637

File tree

9 files changed

+1076
-6
lines changed

9 files changed

+1076
-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.6.0-alpha.1" }
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.8", features = [
3943
"der",
4044
"hazmat",
@@ -43,6 +47,7 @@ elliptic-curve = { version = "0.14.0-rc.15", optional = true, features = [
4347
"alloc",
4448
"pkcs8",
4549
] }
50+
hmac = { version = "0.13.0-rc.0", optional = true }
4651
p192 = { version = "0.14.0-pre", optional = true }
4752
p224 = { version = "0.14.0-pre", optional = true }
4853
p256 = { version = "0.14.0-pre.11", optional = true }
@@ -60,14 +65,20 @@ signature = { version = "3.0.0-rc.0", features = [
6065
"alloc",
6166
"digest",
6267
], optional = true }
68+
kbkdf = { version = "0.0.1", optional = true }
69+
concat-kdf = { version = "0.2.0-pre", optional = true }
6370
cfg-if = "1.0.0"
6471
strum = { version = "0.26.3", optional = true }
6572
strum_macros = { version = "0.26.4", optional = true }
6673
paste = "1.0.14"
6774
getrandom = "0.3"
75+
rand = "0.9"
6876

6977
[dev-dependencies]
78+
aes = "0.9.0-pre.2"
7079
env_logger = "0.11.5"
80+
hex-literal = "1"
81+
rsa = { version = "0.10.0-pre.3" }
7182
serde_json = "^1.0.108"
7283
sha2 = { version = "0.11.0-rc.2", features = ["oid"] }
7384
tss-esapi = { path = ".", features = [
@@ -87,16 +98,24 @@ default = ["abstraction"]
8798
generate-bindings = ["tss-esapi-sys/generate-bindings"]
8899
abstraction = ["rustcrypto"]
89100
integration-tests = ["strum", "strum_macros"]
101+
90102
rustcrypto = [
103+
"byte-strings",
104+
"cfb-mode",
105+
"cipher",
106+
"concat-kdf",
91107
"digest",
92108
"ecdsa",
93-
"elliptic-curve",
109+
"elliptic-curve/ecdh",
110+
"hmac",
111+
"kbkdf",
94112
"pkcs8",
95113
"signature",
96114
"x509-cert",
97115
]
98116
rustcrypto-full = [
99117
"rustcrypto",
118+
"aes",
100119
"p192",
101120
"p224",
102121
"p256",
@@ -109,6 +128,8 @@ rustcrypto-full = [
109128
"sm2",
110129
"sm3",
111130
]
131+
132+
rsa = ["dep:rsa", "kbkdf"]
112133
sha1 = ["dep:sha1", "rsa?/sha1"]
113134
sha2 = ["dep:sha2", "rsa?/sha2"]
114135
bundled = ["tss-esapi-sys/bundled"]

0 commit comments

Comments
 (0)