Skip to content

Commit e006b1c

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

File tree

8 files changed

+919
-5
lines changed

8 files changed

+919
-5
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,15 @@ x509-cert = { git = "https://github.com/RustCrypto/formats.git" }
3333

3434
crypto-bigint = { git = "https://github.com/RustCrypto/crypto-bigint.git" }
3535
crypto-primes = { git = "https://github.com/entropyxyz/crypto-primes.git" }
36+
37+
# https://github.com/RustCrypto/KDFs/pull/108
38+
concat-kdf = { git = "https://github.com/RustCrypto/KDFs.git" }
39+
40+
cfb-mode = { git = "https://github.com/RustCrypto/block-modes.git" }
41+
42+
# https://github.com/RustCrypto/block-ciphers/pull/465
43+
aes = { git = "https://github.com/RustCrypto/block-ciphers.git" }
44+
45+
hkdf = { git = "https://github.com/RustCrypto/KDFs.git" }
46+
47+
hmac = { git = "https://github.com/baloo/MACs.git", branch = "baloo/digest-pin" }

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-pre.2", optional = true }
39+
cfb-mode = { version = "0.9.0-pre", optional = true }
3840
ecdsa = { version = "0.17.0-pre.9", features = ["der", "hazmat", "arithmetic", "verifying"], optional = true }
3941
elliptic-curve = { version = "0.14.0-rc.1", optional = true, features = ["alloc", "pkcs8"] }
42+
hmac = { version = "0.13.0-pre.5", 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.2", 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-pre.9", optional = true }
5356
signature = { version = "3.0.0-pre", 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)