forked from trussed-dev/fido-authenticator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
3,158 additions
and
2,656 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
- use 2021 edition | ||
- use @szszszsz's credential ID shortening | ||
- get rid of the two big heaps, only cache timestamp + filename in GetAssertion | ||
- bump to the released dependencies | ||
- integrate `dispatch-fido` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,46 @@ | ||
[package] | ||
name = "fido-authenticator" | ||
version = "0.0.0-unreleased" | ||
version = "0.1.0" | ||
authors = ["Nicolas Stalder <[email protected]>"] | ||
edition = "2018" | ||
edition = "2021" | ||
license = "Apache-2.0 OR MIT" | ||
repository = "https://github.com/solokeys/fido-authenticator" | ||
documentation = "https://docs.rs/fido-authenticator" | ||
description = "FIDO authenticator Trussed app" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
ctap-types = "0.1.0" | ||
delog = "0.1.0" | ||
heapless = "0.7" | ||
interchange = "0.2.0" | ||
littlefs2 = "0.3.1" | ||
serde = { version = "1.0", default-features = false } | ||
serde_cbor = { version = "0.11.0", default-features = false } | ||
serde-indexed = "0.1.0" | ||
trussed = "0.1" | ||
|
||
ctap-types = { git = "https://github.com/solokeys/ctap-types" } | ||
trussed = { git = "https://github.com/trussed-dev/trussed" } | ||
apdu-dispatch = { version = "0.1", optional = true } | ||
ctaphid-dispatch = { version = "0.1", optional = true } | ||
iso7816 = { version = "0.1", optional = true } | ||
|
||
[features] | ||
enable-fido-pre = [] | ||
|
||
default = [] | ||
dispatch = ["apdu-dispatch", "ctaphid-dispatch", "iso7816"] | ||
disable-reset-time-window = [] | ||
enable-fido-pre = [] | ||
|
||
log-all = [] | ||
log-none = [] | ||
log-info = [] | ||
log-debug = [] | ||
log-warn = [] | ||
log-error = [] | ||
|
||
[dev-dependencies] | ||
# quickcheck = "1" | ||
rand = "0.8.4" | ||
|
||
[package.metadata.docs.rs] | ||
features = ["dispatch"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
//! Constants. | ||
use trussed::types::{CertId, KeyId}; | ||
|
||
pub const FIDO2_UP_TIMEOUT: u32 = 30_000; | ||
pub const U2F_UP_TIMEOUT: u32 = 0_250; | ||
pub const U2F_UP_TIMEOUT: u32 = 250; | ||
|
||
pub const ATTESTATION_CERT_ID: CertId = CertId::from_special(0); | ||
pub const ATTESTATION_KEY_ID: KeyId = KeyId::from_special(0); |
Oops, something went wrong.