* Parse slot_id in use from token state Support switching to multi-PIN feature and making the default slots 8. But the command to switch to multi-PIN isn't exposed yet because the implementation isn't ready. Main change of this commit is to cache the slot_id in use inside token state, and retrieve it from token state when needed. * Fix once_cell dependency (#548) * fixed version of once_cell * fixes comments * removes unnecessary fuzz dependency * Fix styles Co-authored-by: kaczmarczyck <43844792+kaczmarczyck@users.noreply.github.com>
33 lines
1.2 KiB
TOML
33 lines
1.2 KiB
TOML
[package]
|
|
name = "crypto"
|
|
version = "0.1.0"
|
|
authors = [
|
|
"Fabian Kaczmarczyck <kaczmarczyck@google.com>",
|
|
"Guillaume Endignoux <guillaumee@google.com>",
|
|
"Jean-Michel Picod <jmichel@google.com>",
|
|
]
|
|
license = "Apache-2.0"
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
rng256 = { path = "../rng256" }
|
|
arrayref = "0.3.6"
|
|
subtle = { version = "2.2.3", default-features = false, features = ["nightly"] }
|
|
byteorder = { version = "1", default-features = false }
|
|
hex = { version = "0.3.2", default-features = false, optional = true }
|
|
ring = { version = "0.16.11", optional = true }
|
|
untrusted = { version = "0.7.0", optional = true }
|
|
serde = { version = "1.0", optional = true, features = ["derive"] }
|
|
serde_json = { version = "=1.0.69", optional = true }
|
|
regex = { version = "1", optional = true }
|
|
|
|
# We explicitly lock the version of those transitive dependencies because their
|
|
# Cargo.toml don't parse with the nightly compiler used by Tock. Remove this
|
|
# whole block once CTAP is a library.
|
|
bumpalo = "=3.8.0" # transitive dependency of ring
|
|
once_cell = { version = "=1.14", optional = true } # transitive dependency of ring
|
|
|
|
[features]
|
|
std = ["hex", "ring", "rng256/std", "untrusted", "serde", "serde_json", "regex"]
|
|
with_ctap1 = []
|