-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
104 lines (82 loc) · 3.59 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
[package]
name = "webcrypt"
version = "0.8.0"
authors = ["Szczepan Zalega <szczepan@nitrokey.com>"]
edition = "2021"
[lib]
name = "webcrypt"
path = "src/lib/lib.rs"
[dependencies]
delog = { version = "0.1.6", features = ["std-log"] }
cbor-smol = "0.5.0"
heapless-bytes = { version = "0.3.0" }
heapless = "0.7"
littlefs2-core = "0.1"
serde = { version = "1.0", default-features = false }
serde-indexed = "0.1.0"
serde_bytes = { version = "0.11.10", default-features = false, features=["alloc"] }
generic-array = "0.14.3"
ctap-types = "0.3.1"
ctaphid-app = "0.1"
ctaphid-dispatch = "0.2"
apdu-app = "0.1"
iso7816 = "0.1"
trussed = "0.1.0"
trussed-core = "0.1"
pretty_env_logger = { version = "0.4.0", optional = true }
trussed-rsa-alloc = { version = "0.2.0", optional = true }
# For hmacsha256p256
hmac = { version = "0.12", default-features = false, optional = true}
sha2 = { version = "0.10", default-features = false, optional = true}
[dev-dependencies]
pretty_env_logger = "0.4.0"
# below are for running the usbip example
usbd-ctaphid = "0.2"
clap = { version = "3.0.0", features = ["cargo", "derive"] }
clap-num = "1.0.0"
delog = { version = "0.1.6", features = ["std-log"] }
fido-authenticator = {version = "0.1.1", features = ["dispatch", "log-all"]}
trussed-hkdf = { version = "0.3.0" }
trussed-manage = { version = "0.2.0" }
trussed-fs-info = { version = "0.2.0" }
trussed-staging = { version = "0.3.0", features = ["chunked", "hkdf", "manage", "virt", "fs-info"] }
trussed-usbip = { version = "0.0.1", features = ["ctaphid"], default-features = false }
admin-app = { version = "0.1", features = ["log-all"] }
# extensions
trussed-rsa-alloc = { version = "0.2.0", features = ["virt"] }
trussed-auth = "0.3"
[features]
default = ["inject-any-key", "hmacsha256p256", "rsa"]
enable-logs = ["pretty_env_logger", "log-all", "delog/std-log", "trussed-rsa-alloc/log-all"]
# Disable ClientContext PIN encryption
transparent-encryption = []
# Disable authentication token check. FIXME rename to mark it as dangerous, and remove from the features
no-authentication = []
# Enable to make NFC transport work. Needs updated apdu-dispatch for Peek implementation / multiple apps support.
# Soon probably obsolete by the app wrapper approach
apdu-peek = []
# Support P256 key derivation from HMAC
# Uses custom backend extension
hmacsha256p256 = ["trussed/serde-extensions", "hmac", "sha2"]
# Allow to inject raw key data with specified type into the Trussed key store. Needed for OpenPGP support to use Kind::P256.
# Uses custom backend extension
inject-any-key = ["hmacsha256p256"]
# Support RSA
rsa = ["trussed-rsa-alloc"]
test-commands = []
log-all = []
log-none = []
log-info = []
log-debug = []
log-warn = []
log-error = []
[[example]]
name="usbip"
[patch.crates-io]
admin-app = { git = "https://github.com/Nitrokey/admin-app.git", rev = "d5f1c6df405e4edeb6524f908c1c713139173e81" }
fido-authenticator = { git = "https://github.com/Nitrokey/fido-authenticator.git", rev = "c9512c7bdff055a5fd9373f1c60c2a14d05ef3ce" }
trussed = { git = "https://github.com/trussed-dev/trussed.git", rev = "6bba8fde36d05c0227769eb63345744e87d84b2b" }
trussed-auth = { git = "https://github.com/trussed-dev/trussed-auth", rev = "fc53539536d7658c45a492585041742d8cdc45d0" }
trussed-rsa-alloc = { git = "https://github.com/trussed-dev/trussed-rsa-backend.git", rev = "743d9aaa3d8a17d7dbf492bd54dc18ab8fca3dc0" }
trussed-staging = { git = "https://github.com/trussed-dev/trussed-staging.git", rev = "1e1ca03a3a62ea9b802f4070ea4bce002eeb4bec" }
trussed-usbip = { git = "https://github.com/trussed-dev/pc-usbip-runner.git", rev = "4fe4e4e287dac1d92fcd4f97e8926497bfa9d7a9" }