kaczmarczyck
522e6079e3
Forward desktop test fixes ( #419 )
...
* fixes clippy warnings for compilers until 2021-11-25
* fixes run_desktop_tests
* removes page_size
2021-11-30 11:07:17 +01:00
kaczmarczyck
1adde220c4
Upgrade commands ( #381 )
...
* upgrade commands
* precise metadata length
* const METADATA_LEN for test
2021-09-17 14:22:21 +02:00
David Drysdale
0287a09573
cbor: allow user to control nesting ( #329 )
...
* cbor: allow user to control nesting
- Make the default read/write entrypoints allow infinite nesting.
- Add {read,write}_nested() entrypoints that allow the crate user to
control the depth of nesting that's allowed.
- Along the way, convert the write[_nested] variants to return a
`Result<(), EncoderError>` rather than a bool. This exposes
more failure information (and forces the caller to take notice
of those tailures), and allows use of the ? operator.
* fixup: transmute error
Co-authored-by: kaczmarczyck <43844792+kaczmarczyck@users.noreply.github.com >
2021-06-18 19:39:54 +02:00
David Drysdale
7719078d46
cbor: rename crate to sk-cbor
...
In anticipation of publishing to crates.io, which already has a `cbor`
crate.
2021-06-16 17:16:05 +02:00
kaczmarczyck
78b7767682
CBOR maps use Vec instead of BTreeMap ( #303 )
...
* CBOR uses Vec for map internally
* remove BTreeMap from get_info
* rename cbor_map_btree and clean up cbor_array_vec
* destructure now takes Vec, not BTreeMap
* adds dedup in CBOR writer
* fail to write CBOR maps with duplicates
* CBOR interface refinements
* macro documentation for CBOR map and array
2021-04-13 14:46:28 +02:00
kaczmarczyck
63232cfe60
adds PIN token state with timeouts ( #296 )
2021-03-22 14:03:51 +01:00
kaczmarczyck
aec1e0a409
adds PIN protocol V2 to all commands ( #295 )
2021-03-18 17:29:32 +01:00
kaczmarczyck
e5313057f9
PIN protocol V2 in ClientPin ( #293 )
...
* PIN protocol V2 in ClientPin
* the test ClientPin has a random second private key
2021-03-15 13:36:28 +01:00
kaczmarczyck
351e6c12c6
renames PIN protocol related variables to prepare PIN protocol v2 ( #291 )
2021-03-04 10:37:19 +01:00
kaczmarczyck
f11a838cc7
Improved documentation for customization ( #287 )
...
* move constants to new file, and update documentation
* documentation improvements, deploy checks tests
* fix pylint
* improved code style
* swap build and check
2021-02-19 14:20:23 +01:00
Fabian Kaczmarczyck
44b7c3cdc1
dummy implementation for enterprise attestation
2021-02-04 21:26:00 +01:00
Fabian Kaczmarczyck
371e8b6f35
remove conditional trait implementation
2021-02-02 05:46:03 +01:00
Fabian Kaczmarczyck
2dbe1c5f07
adds enterprise for make, byte keys
2021-01-27 11:16:48 +01:00
Fabian Kaczmarczyck
b2c8c5a128
adds the new command AuthenticatorLargeBlobs
2021-01-22 13:55:32 +01:00
Fabian Kaczmarczyck
14189a398a
implements the credBlob extensions
2021-01-20 19:13:05 +01:00
Fabian Kaczmarczyck
1f37ae50c5
Merge develop into command-cred-mgmt
2021-01-14 16:14:10 +01:00
kaczmarczyck
e545acda16
Merge branch 'develop' into authenticator-config
2021-01-14 15:14:07 +01:00
Fabian Kaczmarczyck
c6726660ac
adds the command logic for credential management
2021-01-13 15:02:46 +01:00
Fabian Kaczmarczyck
da27848c27
updates license header to 2021 in ctap
2021-01-12 19:13:43 +01:00
Fabian Kaczmarczyck
2776bd9b8e
new CoseKey data format
2021-01-12 15:11:20 +01:00
Fabian Kaczmarczyck
f4eb6c938e
adds the config command
2021-01-08 13:53:27 +01:00
Fabian Kaczmarczyck
c873d3b614
removes all occurences of CTAP 2.1 flags
2021-01-08 12:40:37 +01:00
Fabian Kaczmarczyck
763bc031aa
updates command bytes
2020-12-18 19:17:12 +01:00
Jean-Michel Picod
7213c4ee99
Address first round of comments.
2020-12-16 18:22:15 +01:00
Jean-Michel Picod
efb6378311
Add vendor command to load certificate and priv key
2020-12-16 18:22:15 +01:00
Fabian Kaczmarczyck
3ae59ce1ec
GetNextAssertion command minimal implementation
...
This still lacks order of credentials and timeouts.
2020-11-26 14:41:21 +01:00
Guillaume Endignoux
323701a6e2
Formatting.
2020-09-29 11:05:24 +02:00
Guillaume Endignoux
5511811703
Fix most Clippy warnings.
2020-09-29 11:05:24 +02:00
Guillaume Endignoux
85a34ad085
Migrate import statements and macros to Rust 2018.
2020-09-24 11:28:24 +02:00
Fabian Kaczmarczyck
9c673844d5
improved documentation, especially with regards to the extension
2020-07-09 19:06:42 +02:00
Fabian Kaczmarczyck
04278d91d8
adds code style improvements, including a new enum for permissions
2020-07-08 16:17:15 +02:00
Fabian Kaczmarczyck
26595db810
adds new client Pin subcommand minPinLength implementation
2020-07-02 19:43:14 +02:00
Fabian Kaczmarczyck
9ff988d3a7
refactors the client PIN implementation into a new module
2020-07-02 19:30:15 +02:00
Fabian Kaczmarczyck
63aef3bd76
new client pin subcommands
2020-07-02 19:14:25 +02:00
kaczmarczyck
f5e0696ea1
Merge branch 'master' into authenticator-selection
2020-06-22 12:44:36 +02:00
Guillaume Endignoux
09c9fb3a3e
Apply suggestion to remove additional semi-colons.
2020-06-22 11:49:47 +02:00
Guillaume Endignoux
db70c3e66d
s/read_cbor_map/destructure_cbor_map/g
2020-06-22 11:49:47 +02:00
Guillaume Endignoux
493efa9b25
Apply syntax suggestion to read_cbor_map! macro.
2020-06-22 11:49:46 +02:00
Guillaume Endignoux
2124511913
Simplify syntax of the read_cbor_map! macro, to align it with cbor_map.
2020-06-22 11:49:46 +02:00
Guillaume Endignoux
97fb222455
Add a read_cbor_map macro to avoid the overhead of removing values on-by-one in BTreeMap.
2020-06-22 11:49:46 +02:00
Fabian Kaczmarczyck
c3f57f0121
implements the AuthenticatorSelection command
2020-06-09 12:07:00 +02:00
Fabian Kaczmarczyck
909773da36
changes extensions to proper parsed data structures
2020-06-08 16:36:57 +02:00
Fabian Kaczmarczyck
679c1cb291
reads CBOR maps by moving instead of references
2020-06-05 15:42:06 +02:00
Fabian Kaczmarczyck
d9c4c729e8
adds a feature flag for CTAP2.1, addresses comments
2020-04-28 16:04:09 +02:00
Fabian Kaczmarczyck
8f20a75b17
add 2.1 features to GetInfo
2020-04-20 18:24:11 +02:00
Jean-Michel Picod
f91d2fd3db
Initial commit
2020-01-30 11:47:29 +01:00