30 Commits

Author SHA1 Message Date
pedro martelletto
d421953ef1 examples: specify SPDX-License-Identifier; #623 2022-08-02 11:24:10 +02:00
pedro martelletto
83da91caa9 examples: add COSE_ES384 support 2022-07-15 10:47:34 +02:00
pedro martelletto
030ffea2a4 examples: more renaming 2022-07-14 16:31:03 +02:00
pedro martelletto
89fbb72b4b examples: switch to fido_dev_set_timeout()
drop the existing signal-based timeout implementation in favour of
the recently introduced fido_dev_set_timeout().
2021-09-29 09:27:51 +02:00
pedro martelletto
ebd813d442 examples: showcase latest API
showcase fido_cred_attstmt and fido_{assert,cred}_set_clientdata
2021-08-13 13:27:34 +02:00
pedro martelletto
072f9ff2b5 examples: sanitise header inclusions
- fix angle-bracket vs double-quote confusion;
- trim unnecessary includes.
2021-03-19 12:06:15 +01:00
pedro martelletto
3cde0e0d5d examples: limit largeblob examples to key retrieval 2021-02-26 11:59:43 +01:00
pedro martelletto
97308f32a7 large_blob -> largeblob 2021-02-17 09:34:04 +01:00
Ludvig Michaelsson
cf861c9dc5 large blobs: examples 2021-02-01 19:02:41 +01:00
pedro martelletto
d59de2b7a0 examples: always include openbsd-compat.h last 2020-08-06 09:58:44 +02:00
pedro martelletto
b488707020 examples: when verifying, pin implies uv
when verifying an assertion/credential obtained using a PIN, check
whether the user verification bit was signed; inspired by gh#192.
2020-07-18 08:05:57 +02:00
pedro martelletto
b21162efb3 examples: correctly declare 'got_signal'
make sure the declaration of 'got_signal' is preceded by its scope.
2020-06-26 20:16:54 +02:00
pedro martelletto
9e8255cc4d silence a few msvc warnings 2020-06-06 20:20:11 +02:00
pedro martelletto
cc7631a9ed examples: add timeout support to {cred,assert} 2019-11-12 13:43:45 +01:00
pedro martelletto
dff0b6dc45 examples: show how to trigger fido_dev_cancel from a signal handler 2019-09-17 13:47:20 +02:00
pedro martelletto
6cc63b3b4a reflect fido's 3-state booleans 2019-05-28 14:13:47 +02:00
pedro martelletto
901073ad07 examples: add eddsa support 2019-05-15 17:15:29 +02:00
pedro martelletto
a9822f020c make unistd.h conditional on its presence 2018-08-30 12:47:54 +02:00
pedro martelletto
d8d70adb82 implement support for fido2's hmac-secret extension 2018-07-27 13:56:54 +02:00
pedro martelletto
6315c583b7 move openbsd-compat sources 2018-06-18 11:55:39 +02:00
pedro martelletto
6e7c92b209 Swap the order of the arguments in es256_pk_from_EC_KEY() and
rs256_pk_from_RSA() for consistency with the rest of the API.
2018-05-25 17:39:11 +02:00
pedro martelletto
a64bf723d9 Fix the error codes returned by es256_pk_from_EC_KEY() and
rs256_pk_from_RSA().
2018-05-25 17:39:11 +02:00
pedro martelletto
6694294914 Use timingsafe_bcmp() to check an assertion's RP. 2018-05-22 09:25:16 +02:00
pedro martelletto
cf7486a026 Add support for COSE RS256. 2018-05-11 14:04:18 +02:00
pedro martelletto
b8c58e962e Decouple COSE ES256 from the main API.
Pave the way for different cryptosystems to be supported.
2018-05-11 14:01:31 +02:00