Commit Graph

736 Commits

Author SHA1 Message Date
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
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
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
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
Kamran Khan
bbeec0118e Merge remote-tracking branch 'upstream/master' into apdu-parser-kk 2020-12-01 10:02:51 -08:00
Jean-Michel Picod
c256a44dcb Merge pull request #205 from MirnaMuhammad98/apdu-parser
Add APDUs Parser
2020-12-01 18:59:42 +01:00
Jean-Michel Picod
57b2bd6871 Merge branch 'master' into apdu-parser 2020-12-01 18:52:44 +01:00
Kamran Khan
ce46af0b6b Make cargo fmt happy 2020-11-30 14:43:44 -08:00
Kamran Khan
94f548d5c5 Add extended APDU parser 2020-11-30 14:35:01 -08:00
Kamran Khan
f8a6fb35e2 Ignore dirty submodules 2020-11-30 08:46:02 -08:00
Julien Cretin
9d80b87b43 Merge pull request #226 from ia0/v2_fuzz
Add debug helper for fuzzing
2020-11-30 15:53:17 +01:00
Julien Cretin
a0e3048f82 Add debug helper for fuzzing 2020-11-30 11:30:49 +01:00
Julien Cretin
5f80a4b3a3 Merge pull request #225 from ia0/v2_fuzz
Do not crash with dirty init
2020-11-30 11:23:41 +01:00
Kamran Khan
5f5f72b6d1 Use arrayref for converting into ApduHeader 2020-11-30 02:04:52 -08:00
Julien Cretin
f548a35f01 Do not crash with dirty init 2020-11-30 10:29:18 +01:00
Julien Cretin
44b35169af Merge pull request #210 from ia0/v2_fuzz
Add store fuzzing
2020-11-30 10:11:52 +01:00
Kamran Khan
d70dd24ffd Merge remote-tracking branch 'upstream/master' into apdu-parser-kk 2020-11-30 00:23:26 -08:00
kaczmarczyck
8616ae3f32 Merge branch 'master' into v2_fuzz 2020-11-30 08:50:08 +01:00
kaczmarczyck
1a948d2f1f Merge pull request #224 from kaczmarczyck/store-user-data
Adds user data to stored credentials
2020-11-30 08:46:28 +01:00
Julien Cretin
ed5a9e5b24 Apply review comments 2020-11-28 19:01:16 +01:00
Julien Cretin
9f04408433 Merge branch 'master' into v2_fuzz 2020-11-28 18:45:41 +01:00
Fabian Kaczmarczyck
2a4677c0b1 adds user data to persistent storage 2020-11-27 16:53:12 +01:00
kaczmarczyck
02c9abc0a3 Merge pull request #223 from kaczmarczyck/get-next-assertion
GetNextAssertion
2020-11-26 19:48:52 +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
64027774a5 Merge pull request #222 from jmichelp/transparency
Ensure CTAP1 uses the storage to access attestation material
2020-11-26 17:32:43 +01:00
Jean-Michel Picod
3d1d827984 Address PR comments 2020-11-26 16:29:14 +01:00
Fabian Kaczmarczyck
3aef7e8b19 reuse update_command_permission 2020-11-26 15:56:59 +01:00