Commit Graph

66 Commits

Author SHA1 Message Date
Fabian Kaczmarczyck
c6726660ac adds the command logic for credential management 2021-01-13 15:02:46 +01:00
Fabian Kaczmarczyck
27a7108328 moves filter_credentials to call side 2021-01-12 07:01:25 +01:00
Fabian Kaczmarczyck
4cee0c4c65 only keeps keys instead of credentials as state 2021-01-11 14:31:13 +01:00
Fabian Kaczmarczyck
18ebeebb3e adds storage changes for credential management 2021-01-11 11:51:01 +01:00
Fabian Kaczmarczyck
c873d3b614 removes all occurences of CTAP 2.1 flags 2021-01-08 12:40:37 +01:00
Fabian Kaczmarczyck
d6adab4381 updates status codes for RD02 2020-12-18 19:19:41 +01:00
Jean-Michel Picod
7213c4ee99 Address first round of comments. 2020-12-16 18:22:15 +01:00
Jean-Michel Picod
3c93c8ddc6 Remove compile time crypto material. 2020-12-16 18:22:15 +01:00
Julien Cretin
371b8af224 Move choice between prod and test storage to embedded_flash module
This way all users of storage can share the logic to choose between flash or RAM
storage depending on the "std" feature. This is needed because the store_latency
example assumes flash storage but is built when running `cargo test
--features=std`.
2020-12-10 18:04:25 +01:00
Julien Cretin
4253854cf1 Remove ram_storage feature
We don't need to build a production key without persistent storage. Tests and
fuzzing continue to use the std feature to use the RAM implementation (that does
sanity checks).
2020-12-10 13:06:05 +01:00
Julien Cretin
f5ef235c69 Merge branch 'master' into v2_lib 2020-12-10 09:38:26 +01:00
Julien Cretin
776093a68b Find the next free key in a linear way 2020-12-09 10:52:51 +01:00
Julien Cretin
8965c6c8fb Rename and use HARDWARE_FAILURE error 2020-12-08 20:45:27 +01:00
Fabian Kaczmarczyck
fcbaf1e973 fixes comments 2020-12-08 19:31:56 +01:00
Fabian Kaczmarczyck
90def7dfd3 implicitly generate HMAC-secret 2020-12-08 18:12:48 +01:00
kaczmarczyck
c5007e384e Merge branch 'master' into v2_lib 2020-12-04 15:26:03 +01:00
Julien Cretin
16c0196b1d Check global counter length 2020-12-04 14:42:16 +01:00
Fabian Kaczmarczyck
b032a15654 makes the global signature counter more privacy friendly 2020-12-04 13:41:41 +01:00
Julien Cretin
b55d432043 Apply review comments 2020-12-01 15:39:51 +01:00
Julien Cretin
1db73c699b Apply review comments 2020-12-01 11:29:52 +01:00
Julien Cretin
7997041be0 Merge branch 'master' into v2_lib 2020-11-30 10:34:54 +01:00
Julien Cretin
a0801c3023 Merge branch 'master' into v2_lib 2020-11-28 19:27:21 +01:00
Fabian Kaczmarczyck
2a4677c0b1 adds user data to persistent storage 2020-11-27 16:53:12 +01:00
Fabian Kaczmarczyck
1571f58cd3 wrapping_add in storage and more moving 2020-11-26 19:21:41 +01:00
kaczmarczyck
1d7365c4cb Merge branch 'master' into get-next-assertion 2020-11-26 18:51:06 +01:00
Jean-Michel Picod
3d1d827984 Address PR comments 2020-11-26 16:29:14 +01:00
Fabian Kaczmarczyck
ed59ebac0d command timeout for GetNextAssertion 2020-11-26 14:56:52 +01:00
Fabian Kaczmarczyck
af4eef8085 adds credential ordering 2020-11-26 14:41:21 +01:00
Jean-Michel Picod
f2b3ca4029 Make private key sensitive and ensure attestation is OTP 2020-11-25 17:44:52 +01:00
Jean-Michel Picod
f47e1e2a86 Ensure store behaves as expected in prod 2020-11-25 17:44:19 +01:00
Jean-Michel Picod
3dbfae972f Always insert attestation material in the store 2020-11-25 17:17:57 +01:00
Julien Cretin
5673b9148f Use new persistent store library (and delete old) 2020-11-11 17:31:31 +01:00
Fabian Kaczmarczyck
16157e64a4 change max PIN retries to 8 2020-11-10 09:52:58 +01:00
Guillaume Endignoux
68b0bdc29b Fix more Clippy warnings. 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
Julien Cretin
6a6891949b Expose MasterKeys fields again 2020-09-23 13:27:20 +02:00
Julien Cretin
426722bb6b Return arrays for fixed-size objects 2020-09-23 11:10:04 +02:00
Julien Cretin
cae38c39c5 Merge branch 'master' into v2_error 2020-09-23 10:12:22 +02:00
Julien Cretin
7c6a1e27b4 Return errors and Vecs from CTAP storage 2020-09-22 16:23:51 +02:00
Guillaume Endignoux
ff73936a4d Fix imports in ctap, embedded_flash and lang-items. 2020-09-22 13:14:33 +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
3b6615520f adds clarifications, improvements and tests 2020-07-06 12:39:52 +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
Julien Cretin
46df22fa7c Remove unnecessary lifetime name 2020-06-19 17:40:24 +02:00
Julien Cretin
a0fe66d7ed Merge branch 'master' into aaguid 2020-06-09 11:56:05 +02:00
Julien Cretin
935ccf3668 Revert "Propagate the NBYTES constant from Int256 to SecKey"
This reverts commit 0073c153d2.
2020-06-09 11:55:36 +02:00
Julien Cretin
0073c153d2 Propagate the NBYTES constant from Int256 to SecKey 2020-06-04 14:32:04 +02:00