Julien Cretin
7a641d6391
Use the new const_mut_refs default feature of linked_list_allocator
...
This is necessary for Heap::empty() to be const.
2020-12-10 16:20:26 +01:00
Julien Cretin
d4b20a5acc
Fix linked_list_allocator version to fix build
...
They released version 0.8.7 today which breaks our assumption that Heap::empty
is callable in const context.
2020-12-10 16:15:58 +01:00
Julien Cretin
8800c3e906
Merge branch 'master' into no_ram_storage
2020-12-10 15:48:45 +01:00
Julien Cretin
ecbd3a036a
Merge pull request #236 from ia0/v2_fuzz
...
Do not use delay_map anymore
2020-12-10 15:47:33 +01:00
Julien Cretin
19ebacec15
Do not use delay_map anymore
...
This permits to avoid copies. Before we used to do one copy per storage
operation. Now we do one copy per store operation.
2020-12-10 13:36:33 +01:00
Julien Cretin
ae08221cdb
Add latency example
2020-12-10 13:31: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
Jean-Michel Picod
8a9a1dc87a
Merge pull request #233 from jmichelp/master
...
Use a vscode workspace instead of local settings.
2020-12-10 12:59:53 +01:00
kaczmarczyck
657c8b9c2c
Merge branch 'master' into master
2020-12-10 12:33:33 +01:00
Julien Cretin
3badcc8206
Merge pull request #204 from ia0/v2_lib
...
Use new persistent store library (and delete old)
2020-12-10 12:31:12 +01:00
Jean-Michel Picod
c2de3e7ed9
Use a vscode workspace instead of local settings.
2020-12-10 10:02:48 +01:00
Julien Cretin
f5ef235c69
Merge branch 'master' into v2_lib
2020-12-10 09:38:26 +01:00
Kamran Khan
6f1c63e9b8
Add test cases to cover different length scenarios
2020-12-09 21:06:49 -08:00
Kamran Khan
0da13cd61f
De-deuplicate le length calculation
2020-12-09 20:43:06 -08:00
kaczmarczyck
829fcb1238
Merge pull request #231 from kaczmarczyck/implicit-hmac-secret
...
implicitly generate HMAC-secret
2020-12-09 21:19:46 +01:00
Fabian Kaczmarczyck
d942f0173f
reverts block_len to a fixed number
2020-12-09 20:11:35 +01:00
kaczmarczyck
e8f6ed9a43
Merge branch 'master' into implicit-hmac-secret
2020-12-09 19:25:44 +01:00
Jean-Michel Picod
74a184372e
Merge pull request #232 from jmichelp/master
...
Add missing license header.
2020-12-09 19:06:37 +01:00
Fabian Kaczmarczyck
863bf521de
removes extra sha256
2020-12-09 19:05:03 +01:00
Jean-Michel Picod
62dd088cd0
Add missing license header.
2020-12-09 18:55:08 +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
Kamran Khan
56bc86c5d0
No need to cast again
2020-12-07 23:40:06 -08:00
Kamran Khan
2d17bb2afa
Readability improvements
2020-12-07 23:38:21 -08:00
Kamran Khan
373464b72d
Remove redundant type declaration
2020-12-07 23:35:47 -08:00
Kamran Khan
e4d160aaee
Use TryFrom to convert between APDU and CTAP status codes
2020-12-07 23:32:04 -08:00
Kamran Khan
4c84e94039
Use new APDU parser in CTAP1 code
2020-12-07 21:23:55 -08:00
kaczmarczyck
c5007e384e
Merge branch 'master' into v2_lib
2020-12-04 15:26:03 +01:00
kaczmarczyck
f475aa5d28
Merge pull request #229 from kaczmarczyck/signature-counter-increments
...
Signature counter increments
2020-12-04 15:22:28 +01:00
Fabian Kaczmarczyck
0b55ff3c3a
fixes formatting
2020-12-04 14:57:11 +01:00
Julien Cretin
16c0196b1d
Check global counter length
2020-12-04 14:42:16 +01:00
Fabian Kaczmarczyck
21b8ad18ce
fix clippy warning in apdu
2020-12-04 13:41:56 +01:00
Fabian Kaczmarczyck
b032a15654
makes the global signature counter more privacy friendly
2020-12-04 13:41:41 +01:00
Jean-Michel Picod
79c1ef29c4
Merge pull request #227 from krkhan/apdu-parser-kk
...
Add extended APDU parser
2020-12-03 17:55:39 +01:00
Kamran Khan
1eaff57c88
Le should be interpreted as 0x10000 even in the 2-byte case
2020-12-03 08:25:34 -08:00
Kamran Khan
4bfce88e9b
Remove indention level made redundant by early-return
2020-12-03 08:14:07 -08:00
Kamran Khan
bec94f02be
Tweak Le appropriately depending on its swize
2020-12-03 08:10:44 -08:00
Kamran Khan
cc8bdb982d
Remove unknown apdu type
2020-12-03 07:55:34 -08:00
Kamran Khan
69cdd4a0dc
Use (relatively more) appropriate error code)
2020-12-03 07:53:22 -08:00
Kamran Khan
71ec2cf937
Return an error when the case isn't determined
2020-12-03 07:50:05 -08:00
Kamran Khan
943d7af503
Payload does not need to be an array
2020-12-02 23:43:35 -08:00
Kamran Khan
9fc1ac114d
Reuse frame bytes for payload
2020-12-02 23:39:48 -08:00
Kamran Khan
524ebe3fce
Prevent int overflow by casting before addition
2020-12-02 23:32:25 -08:00
Kamran Khan
1d8c103d9b
Construct and return immutable instances of APDU instead of mutating one
2020-12-02 23:29:11 -08:00
Kamran Khan
0420ad8de6
Use constant for consistency
2020-12-02 23:06:24 -08:00
Kamran Khan
2c49718fee
Lc3DataLe3 is not a valid case
2020-12-02 23:03:35 -08:00
Kamran Khan
b9ffe7e4ce
Use constant instead of hardcoded integer
2020-12-02 23:02:07 -08:00
Kamran Khan
dc95310fc0
Clarify comments
2020-12-01 10:13:25 -08:00