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
kaczmarczyck
0aa6e57d93
Merge branch 'master' into cred-protect
2020-06-04 14:10:12 +02:00
Julien Cretin
acd9d93107
Merge branch 'master' into aaguid
2020-06-03 11:26:59 +02:00
Julien Cretin
d74a5e8894
Add setter functions and fix tests
2020-06-02 11:35:17 +02:00
Julien Cretin
5f8cb116a5
Only write attestation if compiled with batch attestation
2020-06-02 11:00:26 +02:00
Julien Cretin
98a558a502
Access the persistent keys through the store
...
This permits to set them using a vendor command and thus not embed their value
in the application.
2020-05-30 20:15:59 +02:00
Fabian Kaczmarczyck
a95ef72a93
improved testing, addresses comments and a default level fix
2020-05-25 19:56:29 +02:00
Fabian Kaczmarczyck
43d77fd106
implements the credProtect extension
2020-05-13 16:38:14 +02:00
Julien Cretin
ecf02eb6ce
Only store the storage location in the Kernel
2020-05-08 17:00:59 +02:00
Julien Cretin
5c2b72ce83
Move storage bound checking to driver
2020-04-29 15:09:50 +02:00