Fabian Kaczmarczyck
134c880212
reworks command state to its own struct
2021-01-19 15:07:15 +01:00
Fabian Kaczmarczyck
e3353cb232
only stores the RP ID index as state
2021-01-19 12:42:41 +01:00
Fabian Kaczmarczyck
3702b61ce7
implements Default for Response type
2021-01-15 17:41:16 +01:00
kaczmarczyck
aef9566ca4
Merge branch 'develop' into command-cred-mgmt
2021-01-14 18:18:55 +01:00
Fabian Kaczmarczyck
7268a9474b
renames residential to resident
2021-01-14 18:00:05 +01:00
Fabian Kaczmarczyck
0bb6ee32fc
removes unused duplicate PIN protocol check helper
2021-01-14 16:45:38 +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
3e42531011
full URL
2021-01-13 14:26:59 +01:00
Fabian Kaczmarczyck
a26de3b720
moves constants to CoseKey
2021-01-13 14:00:34 +01:00
Fabian Kaczmarczyck
cc86fc2742
removes unused import
2021-01-13 08:52:00 +01:00
Fabian Kaczmarczyck
78167282f9
comment for constants
2021-01-12 19:13:43 +01:00
Fabian Kaczmarczyck
c30268a099
code cleanups and clarifications
2021-01-12 19:13:43 +01:00
Fabian Kaczmarczyck
da27848c27
updates license header to 2021 in ctap
2021-01-12 19:13:43 +01:00
kaczmarczyck
a82f767c18
Merge branch 'develop' into authenticator-config
2021-01-12 15:45:58 +01:00
Fabian Kaczmarczyck
2776bd9b8e
new CoseKey data format
2021-01-12 15:11:20 +01:00
kaczmarczyck
688d11c6b6
Merge branch 'develop' into cose-api
2021-01-12 10:24:15 +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
6f9f833c0b
moves COSE related conversion from crypto to data_formats
2021-01-08 15:42:35 +01:00
Fabian Kaczmarczyck
ec259d8428
adds comments to new config command file
2021-01-08 13:53:27 +01:00
Fabian Kaczmarczyck
f4eb6c938e
adds the config command
2021-01-08 13:53:27 +01:00
Fabian Kaczmarczyck
da03f77a32
small readbility fix for variable assignment with cfg
2021-01-08 13:13:52 +01:00
Fabian Kaczmarczyck
c873d3b614
removes all occurences of CTAP 2.1 flags
2021-01-08 12:40:37 +01:00
kaczmarczyck
4530455638
Merge branch 'master' into new-status-codes
2020-12-18 19:47:05 +01:00
Fabian Kaczmarczyck
d6adab4381
updates status codes for RD02
2020-12-18 19:19:41 +01:00
Fabian Kaczmarczyck
763bc031aa
updates command bytes
2020-12-18 19:17:12 +01:00
Jean-Michel Picod
8595ed5e28
Addressing review comments.
2020-12-16 18:22:15 +01:00
Jean-Michel Picod
7213c4ee99
Address first round of comments.
2020-12-16 18:22:15 +01:00
Jean-Michel Picod
ca0606a557
Bump versions to 1.0 for FIDO2 certification.
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
Jean-Michel Picod
efb6378311
Add vendor command to load certificate and priv key
2020-12-16 18:22:15 +01:00
Fabian Kaczmarczyck
6c9fc2565a
changes channel ID endianness to big endian
2020-12-16 11:03:16 +01:00
Kamran Khan
35bdfe90ed
Re-instate the length check for Le bytes
2020-12-14 04:54:25 -08:00
Kamran Khan
dbbdddd58b
Fix error codes
2020-12-14 03:45:13 -08:00
Kamran Khan
5882a6a3cc
Fix ApduStatusCode->u16 implementation
2020-12-10 23:40:47 -08:00
Kamran Khan
f74d1b9ffd
Return error when Le calculation overflows
2020-12-10 21:27:52 -08:00
Kamran Khan
a7eb38aac8
Use checked sub
2020-12-10 21:26:44 -08:00
Kamran Khan
9c9f9efcce
Merge remote-tracking branch 'upstream/master' into ctap1-new-apdu-parser
2020-12-10 21:18:53 -08:00
Kamran Khan
29dbff7a40
The great ApduStatusCode encroachment
2020-12-10 20:15:05 -08:00
Kamran Khan
21bdbd8114
Use integers instead of ByteArray for the ApduStatusCode enum
2020-12-10 20:01:06 -08:00
Kamran Khan
162c00a0d1
Simplify Le length calculation
2020-12-10 19:54:25 -08: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
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
Fabian Kaczmarczyck
d942f0173f
reverts block_len to a fixed number
2020-12-09 20:11:35 +01:00