Skip to content

Commit 206e793

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

File tree

8 files changed

+924
-16
lines changed

8 files changed

+924
-16
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ p224 = { git = "https://github.com/RustCrypto/elliptic-curves.git" }
99
sm2 = { git = "https://github.com/RustCrypto/elliptic-curves.git" }
1010

1111
x509-cert = { git = "https://github.com/RustCrypto/formats.git" }
12+
13+
concat-kdf = { git = "https://github.com/RustCrypto/KDFs.git" }

tss-esapi/Cargo.toml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,11 @@ regex = "1.3.9"
3535
zeroize = { version = "1.5.7", features = ["zeroize_derive"] }
3636
tss-esapi-sys = { path = "../tss-esapi-sys", version = "0.5.0" }
3737
x509-cert = { version = "0.3.0-pre.0", optional = true }
38+
aes = { version = "0.9.0-rc.0", optional = true }
39+
cfb-mode = { version = "0.9.0-rc.0", optional = true }
3840
ecdsa = { version = "0.17.0-rc.0", features = ["der", "hazmat", "arithmetic", "verifying"], optional = true }
3941
elliptic-curve = { version = "0.14.0-rc.5", optional = true, features = ["alloc", "pkcs8"] }
42+
hmac = { version = "0.13.0-rc.0", optional = true }
4043
p192 = { version = "0.14.0-pre", optional = true }
4144
p224 = { version = "0.14.0-pre", optional = true }
4245
p256 = { version = "0.14.0-pre.5", optional = true }
@@ -51,14 +54,20 @@ sm2 = { version = "0.14.0-pre", optional = true }
5154
sm3 = { version = "0.5.0-pre.5", optional = true }
5255
digest = { version = "0.11.0-rc.0", optional = true }
5356
signature = { version = "3.0.0-rc.0", features = ["alloc", "digest"], optional = true}
57+
kbkdf = { version = "0.0.1", optional = true }
58+
concat-kdf = { version = "0.2.0-pre", optional = true }
5459
cfg-if = "1.0.0"
5560
strum = { version = "0.26.3", optional = true }
5661
strum_macros = { version = "0.26.4", optional = true }
5762
paste = "1.0.14"
5863
getrandom = "0.3"
64+
rand = "0.9"
5965

6066
[dev-dependencies]
67+
aes = "0.9.0-pre.2"
6168
env_logger = "0.11.5"
69+
hex-literal = "1"
70+
rsa = { version = "0.10.0-pre.3" }
6271
serde_json = "^1.0.108"
6372
sha2 = { version = "0.11.0-pre.5", features = ["oid"] }
6473
tss-esapi = { path = ".", features = [
@@ -67,6 +76,7 @@ tss-esapi = { path = ".", features = [
6776
"abstraction",
6877
"rustcrypto-full",
6978
] }
79+
p256 = { version = "0.14.0-pre.2", features = ["ecdh"] }
7080
x509-cert = { version = "0.3.0-pre.0", features = ["builder"] }
7181

7282
[build-dependencies]
@@ -78,8 +88,9 @@ generate-bindings = ["tss-esapi-sys/generate-bindings"]
7888
abstraction = ["rustcrypto"]
7989
integration-tests = ["strum", "strum_macros"]
8090

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"]
83-
91+
rustcrypto = ["cfb-mode", "concat-kdf", "digest", "ecdsa", "elliptic-curve/ecdh", "hmac", "kbkdf", "pkcs8", "signature", "x509-cert"]
92+
rustcrypto-full = ["rustcrypto", "aes", "p192", "p224", "p256", "p384", "p521", "rsa", "sha1", "sha2", "sha3", "sm2", "sm3"]
93+
94+
rsa = ["dep:rsa", "kbkdf"]
8495
sha1 = ["dep:sha1", "rsa?/sha1"]
8596
sha2 = ["dep:sha2", "rsa?/sha2"]

0 commit comments

Comments
 (0)