platform/core/security/webauthn-ble.git
8 months agoRelease version 1.0.3 01/318301/1 accepted/tizen_unified_toolchain accepted/tizen/9.0/unified/20241030.234558 accepted/tizen/unified/20241001.004056 accepted/tizen/unified/toolchain/20241004.101309 accepted/tizen/unified/x/20241001.153941 accepted/tizen/unified/x/asan/20241013.235605 tizen_9.0_m2_release
Krzysztof Jackiewicz [Thu, 26 Sep 2024 12:15:15 +0000 (14:15 +0200)]
Release version 1.0.3

Change-Id: I1b8426725f2e8ea221243ef575bd85abd1b22c9f

8 months agoRemove unnecessary chsmack command 48/317848/1
Yonggoo Kang [Thu, 19 Sep 2024 09:26:36 +0000 (18:26 +0900)]
Remove unnecessary chsmack command

Change-Id: If55087b0fdd5e52f72c6eac6cdbf0ce6acb450e4

9 months agofix: don't remove hybrid plugin on package upgrade 00/317200/4
Krzysztof Malysa [Thu, 5 Sep 2024 11:38:33 +0000 (13:38 +0200)]
fix: don't remove hybrid plugin on package upgrade

Change-Id: I35559b08da308f5fcde1c0d0a816902ccabfaafd

9 months agoFix compilation error on Tizen 7.0 67/317367/1
Krzysztof Malysa [Mon, 9 Sep 2024 11:57:33 +0000 (13:57 +0200)]
Fix compilation error on Tizen 7.0

Change-Id: Ie2faac7b8d6729e62bc3ece7e2132d2448d45d4c

9 months agoMove EC key conversion to crypto 78/317078/3
Krzysztof Jackiewicz [Tue, 3 Sep 2024 18:56:02 +0000 (20:56 +0200)]
Move EC key conversion to crypto

Change-Id: Ia848d4df6032d9721a897a019eb4b79349d89770

9 months agoCheck discoverable credentials capability 37/316337/4
Krzysztof Jackiewicz [Mon, 19 Aug 2024 14:57:08 +0000 (16:57 +0200)]
Check discoverable credentials capability

Add tests

Change-Id: I801720887e4579bcbe55b78f8615ccdcb02943d5

9 months agoRelease version 1.0.2 55/316655/1 accepted/tizen_unified_dev accepted/tizen/unified/20240829.091424 accepted/tizen/unified/20240830.010923 accepted/tizen/unified/dev/20240901.214734 accepted/tizen/unified/x/20240830.014044
Krzysztof Jackiewicz [Mon, 26 Aug 2024 09:01:09 +0000 (11:01 +0200)]
Release version 1.0.2

Change-Id: I9cc75db43958a0839c92d0ede605a78fb0b593c4

10 months agoLower the success treshold in cancelation tests 84/315784/3
Krzysztof Jackiewicz [Wed, 7 Aug 2024 12:28:44 +0000 (14:28 +0200)]
Lower the success treshold in cancelation tests

The actual number of successfully cancelled cases drops below 40 from
time to time on emulator. Lower the success treshold to 30.

Change-Id: I189c99045cdf4c82bf436be6e3fb732912fd929f

10 months agoFix formatting 70/315770/1
Krzysztof Malysa [Wed, 7 Aug 2024 08:41:30 +0000 (10:41 +0200)]
Fix formatting

Change-Id: Ie24d06a52ecaf49eb3cd948eb88f8cbadb637e37

10 months agoIgnore non-null options->hints instead of erroring out 69/315769/1
Krzysztof Malysa [Wed, 7 Aug 2024 08:40:37 +0000 (10:40 +0200)]
Ignore non-null options->hints instead of erroring out

Change-Id: I1af67cee3a21fe13a9abbc09d4d8986ab3d2feda

10 months agoReplace error code to message on manual tests for readability 50/315350/1
Yonggoo Kang [Tue, 30 Jul 2024 12:00:27 +0000 (21:00 +0900)]
Replace error code to message on manual tests for readability

Change-Id: Ie8b504019459e7bf49674b48b33db6e3bf3e0cff

10 months agoSupport for uncontactable authenticator 83/309883/7
Krzysztof Jackiewicz [Wed, 17 Apr 2024 07:29:00 +0000 (09:29 +0200)]
Support for uncontactable authenticator

Change-Id: Idaed2c684dbfcefbde2ddbde62e612d2fdf59b51

10 months agoReplace image-viewer to webauthn-image-viewer for manual test 06/314906/3
Yonggoo Kang [Tue, 23 Jul 2024 06:15:29 +0000 (15:15 +0900)]
Replace image-viewer to webauthn-image-viewer for manual test

Change-Id: I207ed5adb5cef93311c68d3beb0eded9ad61385d

10 months agoBump major version 19/314919/1 accepted/tizen/7.0/unified/20240730.133900 accepted/tizen/8.0/unified/20240730.132304 accepted/tizen/unified/20240726.010954 accepted/tizen/unified/dev/20240729.000830 accepted/tizen/unified/toolchain/20240812.131559 accepted/tizen/unified/x/20240801.044118 accepted/tizen/unified/x/asan/20240813.225835
Krzysztof Jackiewicz [Tue, 23 Jul 2024 07:57:11 +0000 (09:57 +0200)]
Bump major version

This is due to backward incompatible changes in the HAL API.

Also require proper webauthn & webauthn-hal version.

Change-Id: I6614862a64fb0228ac5ef924aa8ef7df6323c02e

10 months agoAdjust to API changes 50/312650/2
Krzysztof Jackiewicz [Wed, 12 Jun 2024 10:09:09 +0000 (12:09 +0200)]
Adjust to API changes

Change-Id: Ibd4872b096afbf3f0183cdead76c451f50951ffe

10 months agoAdd discoverable credential option to manual test 80/314680/6
Krzysztof Jackiewicz [Wed, 17 Jul 2024 08:17:18 +0000 (10:17 +0200)]
Add discoverable credential option to manual test

Also disallow empty credentials (note that CTAP2.2 forbids empty list
only for allowList).

Update unit-tests.

Change-Id: I20fa15ae0f68b2df5ffdfb2cc68a3a8d1daabd3c

10 months agoFix remaining clang-tidy warnings 95/314695/1
Krzysztof Malysa [Wed, 17 Jul 2024 13:38:33 +0000 (15:38 +0200)]
Fix remaining clang-tidy warnings

Change-Id: Ic9633097292f09bb546df5a729b4887d9838c200

10 months agoMake run-clang-tidy.sh output less noisy 94/314694/1
Krzysztof Malysa [Wed, 17 Jul 2024 13:38:03 +0000 (15:38 +0200)]
Make run-clang-tidy.sh output less noisy

Change-Id: Id31de986ae2dcf341c5fc483dcccddcb40dd85e2

10 months agoFix clang-tidy warning 73/314573/2
Krzysztof Jackiewicz [Mon, 15 Jul 2024 16:14:53 +0000 (18:14 +0200)]
Fix clang-tidy warning

Change-Id: Id04d096a6c3a03350fd817d2932c1801df7da93e

10 months agoLog request, response and linked data 39/314439/7
Krzysztof Malysa [Thu, 11 Jul 2024 13:15:05 +0000 (15:15 +0200)]
Log request, response and linked data

Change-Id: Ibd69c54d781bb50792fab7af26a83de8c4676b03

10 months agomanual test: explicitly set all request options 16/314516/3
Krzysztof Malysa [Fri, 12 Jul 2024 15:49:46 +0000 (17:49 +0200)]
manual test: explicitly set all request options

Change-Id: I5c83eb2bf72f1756b76071109b310cdc999398fd

10 months agoFix base64url encoding 43/314643/1
Krzysztof Malysa [Tue, 16 Jul 2024 14:41:50 +0000 (16:41 +0200)]
Fix base64url encoding

Change-Id: I218a128cce0c13d071fde1cf332663b7f927a389

10 months agoFix formatting MakeCredential response->attestation_object 28/314428/3
Krzysztof Malysa [Thu, 11 Jul 2024 11:48:09 +0000 (13:48 +0200)]
Fix formatting MakeCredential response->attestation_object

Change-Id: I890c3bf1725559ab54f1c96fc070f8f631e83db1

11 months agoAdd --exclude-credential option to manual test 66/313166/2
Krzysztof Malysa [Wed, 19 Jun 2024 13:13:20 +0000 (15:13 +0200)]
Add --exclude-credential option to manual test

Change-Id: If560d8d79afce5a4c64050ee819ef43681e9253a

11 months agoHandle credential exclusion 57/313157/1
Krzysztof Jackiewicz [Wed, 19 Jun 2024 11:05:30 +0000 (13:05 +0200)]
Handle credential exclusion

Return WAUTHN_ERROR_NOT_ALLOWED if credential is excluded

Change-Id: I33b78a363622397c77bc4eaeb34a4073db7d2ab7

12 months agoAdjust failing test to openssl3.0 77/312377/2
Krzysztof Jackiewicz [Fri, 7 Jun 2024 15:19:00 +0000 (17:19 +0200)]
Adjust failing test to openssl3.0

Encryption/decryption fails on openssl3.0 if an empty key is used. Make the
failing test use a non-empty key.

Change-Id: I201ed3d74971a34e891cc9ee3f96ee1b96ffafeb

12 months agoDisable bluetooth dependent tests on emulator 73/312373/2
Krzysztof Jackiewicz [Fri, 7 Jun 2024 14:11:57 +0000 (16:11 +0200)]
Disable bluetooth dependent tests on emulator

This is to allow testing on Jenkins

Change-Id: Icc31748ee19f176ca958aa5ec592910e16790559

12 months agoUnify spec for tizen versions 7.0-9.0 38/312238/1
Krzysztof Jackiewicz [Wed, 5 Jun 2024 08:13:09 +0000 (10:13 +0200)]
Unify spec for tizen versions 7.0-9.0

Change-Id: Ib44a8d34b809aeeafd99cd8d091a71283d5c96f7

12 months agoUse openssl3 67/312167/1 accepted/tizen/unified/20240605.153158 accepted/tizen/unified/dev/20240620.000218 accepted/tizen/unified/toolchain/20240624.121249 accepted/tizen/unified/x/20240612.025849 accepted/tizen/unified/x/asan/20240625.091847
Dongsun Lee [Tue, 4 Jun 2024 08:29:31 +0000 (17:29 +0900)]
Use openssl3

- The libwebsockets uses openssl3.
- To use openssl3, we need to supress depricated warnings.

Change-Id: I75273768d69b6bd4590bac9fada877b6ec381ae0
(cherry picked from commit 053847f00fdc8f99b70deace49de8f1914840f6c)

12 months agoReturn WAUTHN_ERROR_NOT_SUPPORTED for non-null options->hints 84/311584/7
Krzysztof Malysa [Wed, 22 May 2024 14:31:47 +0000 (16:31 +0200)]
Return WAUTHN_ERROR_NOT_SUPPORTED for non-null options->hints

Change-Id: I81fa54c6fcbde52ab36985e4afadb93b9f0d7f2b

12 months agoclang-tidy: add checking headers and fix warnings 79/311879/4
Krzysztof Malysa [Wed, 29 May 2024 11:35:06 +0000 (13:35 +0200)]
clang-tidy: add checking headers and fix warnings

Change-Id: I2f6e36c0ee967b580261201cd548695c966fc2ed

12 months agoFix generate_compile_commands.sh for incremental builds 71/311471/8
Krzysztof Malysa [Tue, 21 May 2024 14:42:58 +0000 (16:42 +0200)]
Fix generate_compile_commands.sh for incremental builds

Change-Id: I5dc6a4adac8474e23924c633ef13d6f48f065f97

12 months agoIncrease the cancellation chance in tests 13/312113/1
Krzysztof Jackiewicz [Tue, 4 Jun 2024 09:23:19 +0000 (11:23 +0200)]
Increase the cancellation chance in tests

RequestHandler test transactions take up to 2ms on RPi4 on average. A big part
of transaction is not cancellable. With transactions taking ~2ms on average
and 100us CancelFacilitator delays the amount of successfull cancellations
occasionally drops below 20/800.

To increase the chance of successfull cancellation:
* Increase CancelFacilitator delays
* Reduce the max delay before cancellation to 2 x average transaction
  duration
* Reduce the number of repeats to keep the test duration reasonable

Change-Id: I9fec425b3f944eb98ee58ec281755b7428a8bb8d

12 months agoTemporary fix for gcc 13.1 66/312066/3 accepted/tizen/7.0/unified/20240605.045138 accepted/tizen/8.0/unified/20240604.163341 accepted/tizen/unified/20240604.160844 accepted/tizen/unified/x/20240605.012720
Krzysztof Jackiewicz [Mon, 3 Jun 2024 13:00:00 +0000 (15:00 +0200)]
Temporary fix for gcc 13.1

For some reason the template deduction fails if the constant is a static
struct member.

Change-Id: Iabd9b2718699cd867889153ea747a8c711cc1966

12 months agoFix tunnel failing due to an unexpected event when connected 12/311712/1 accepted/tizen/unified/20240603.032352
Krzysztof Malysa [Fri, 24 May 2024 09:07:19 +0000 (11:07 +0200)]
Fix tunnel failing due to an unexpected event when connected

Change-Id: Ic714e2659b6fca1305d04462a7fd940b2f683a6a

12 months agoAdd support for timeout paremeter of the request 02/311402/2
Krzysztof Malysa [Wed, 15 May 2024 12:58:26 +0000 (14:58 +0200)]
Add support for timeout paremeter of the request

Change-Id: I214d560309c9c27c78d93d878a01982ef5b77016

12 months agoFix issues found by clang-tidy and some more 49/311149/3
Krzysztof Malysa [Tue, 14 May 2024 14:28:42 +0000 (16:28 +0200)]
Fix issues found by clang-tidy and some more

Change-Id: I19b208e147910f3c82dbbdcc6b2d3a8c937412a1

12 months agoAdd scripts and support for running clang-tidy 48/311148/5
Krzysztof Malysa [Tue, 14 May 2024 12:09:05 +0000 (14:09 +0200)]
Add scripts and support for running clang-tidy

Change-Id: I7fa7cfde4491c48d13f31a33e098e378b46ac855

12 months agoRefactor ASSERT_* to EXPECT_* where applicable 85/310985/5
Krzysztof Malysa [Fri, 10 May 2024 11:31:21 +0000 (13:31 +0200)]
Refactor ASSERT_* to EXPECT_* where applicable

ASSERT_* were left only where continuing the test is unsafe or
makes no sense.

Change-Id: If93fdb88bb53e2f6aec92a7f05eb51aea9554977

12 months agoImprove test verbosity upon failure 40/310740/7
Krzysztof Malysa [Tue, 7 May 2024 10:07:59 +0000 (12:07 +0200)]
Improve test verbosity upon failure

Change-Id: I9830cc7eaeee8ca7c452c51036bd6394227f563b

12 months agoImplement waiting 2 minutes for potential UPDATE messages 02/310102/21
Krzysztof Malysa [Mon, 22 Apr 2024 11:57:29 +0000 (13:57 +0200)]
Implement waiting 2 minutes for potential UPDATE messages

Change-Id: I2077c8033496d6121bac9b92354e55366ab7f52e

12 months agoFix undefined behavior in TinyCBOR 86/310986/6
Krzysztof Malysa [Fri, 10 May 2024 11:33:05 +0000 (13:33 +0200)]
Fix undefined behavior in TinyCBOR

Issue was found with UndefinedBehaviorSanitizer

Change-Id: Ia9764669a5a62db135bd662a9149866d0b5f6564

13 months agoEnable C++ stdlib assserts in DEBUG build 41/310741/3
Krzysztof Malysa [Tue, 7 May 2024 10:08:23 +0000 (12:08 +0200)]
Enable C++ stdlib assserts in DEBUG build

Change-Id: I1b9b1fb04ca9157776ac53604736fb3d8e2a848e

13 months agoAdd QrCodeShower test 06/310406/5 accepted/tizen/unified/20240508.150742 accepted/tizen/unified/toolchain/20240507.011848 accepted/tizen/unified/x/20240430.094744
Krzysztof Malysa [Fri, 26 Apr 2024 10:06:41 +0000 (12:06 +0200)]
Add QrCodeShower test

Change-Id: I0e530da9b8036c00eb3c83cffb3e51f221004d8a

13 months agoRemove support for thread cancellation 05/310405/4
Krzysztof Malysa [Fri, 26 Apr 2024 09:50:20 +0000 (11:50 +0200)]
Remove support for thread cancellation

Change-Id: I37b7cab1ec4a72708f06f75ac5a6783ee343c027

13 months agoFix builds on gcc13 + 64bit arch 08/310408/2
Krzysztof Jackiewicz [Fri, 26 Apr 2024 12:38:23 +0000 (14:38 +0200)]
Fix builds on gcc13 + 64bit arch

Change-Id: Ibdbbb6944d9cc65deebed357a116ed99b54d1608

13 months agoHttp headers' tests + tunnel fix 47/309847/5
Krzysztof Jackiewicz [Tue, 16 Apr 2024 20:41:42 +0000 (22:41 +0200)]
Http headers' tests + tunnel fix

Also removed unused "delay" functionality from dummy websocket server.

Change-Id: Ib99bb02ed4fd4578fffddc282bc4d1a846908a4a

13 months agoFix build error with gcc13 67/310267/1
Dongsun Lee [Thu, 25 Apr 2024 00:46:01 +0000 (09:46 +0900)]
Fix build error with gcc13

"Some C++ Standard Library headers have been changed to no longer
include other headers that were being used internally by the library.
As such, C++ programs that used standard library components
without including the right headers will no longer compile."

For fixing, just need to explicitly include cstdint.

Change-Id: I69eeceb7f4388a4c7ee357a0a5b8d798508d4b6e

13 months agoAdjust code to VD needs 77/310077/1 accepted/tizen/7.0/unified/20240429.105741 accepted/tizen/7.0/unified/20240502.113456 accepted/tizen/8.0/unified/20240429.063537 accepted/tizen/8.0/unified/20240502.163826 accepted/tizen/unified/20240423.164624
Krzysztof Jackiewicz [Mon, 22 Apr 2024 06:07:47 +0000 (08:07 +0200)]
Adjust code to VD needs

VD uses older Bluetooth API even on the latest Tizen.

Change-Id: If19c5e61105f0cfbd10342ff83c0a5c226a63a0a

13 months agoAdjust code to tizen 7.0 67/309967/5
Krzysztof Jackiewicz [Thu, 18 Apr 2024 10:45:10 +0000 (12:45 +0200)]
Adjust code to tizen 7.0

Change-Id: I2f371c3fd23e7e19425ce7abb7dbec52b1c3280e

13 months agoFix issues reported by SVACE/Coverity 64/309864/2
Krzysztof Jackiewicz [Wed, 17 Apr 2024 12:25:09 +0000 (14:25 +0200)]
Fix issues reported by SVACE/Coverity

Change-Id: Ide8e99b306cc623f5c1a46ff5a0373f7484870c1

13 months agoInject missing tunnel events 46/309846/1
Krzysztof Jackiewicz [Tue, 16 Apr 2024 20:40:18 +0000 (22:40 +0200)]
Inject missing tunnel events

Change-Id: I530d5604b5accbb4a31fea2a7df9633fbca24f85

13 months agoRename OTM* to CancellationM* test classes 10/309610/5
Krzysztof Malysa [Fri, 12 Apr 2024 11:35:50 +0000 (13:35 +0200)]
Rename OTM* to CancellationM* test classes

CancellationM* mock classes are used for testing cancelling from the other
thread.

Change-Id: Id87fc9db2a9b49a5f60d526524f10d9718a6f496

13 months agoAdd CtapMessageProcessor tests 13/309513/7
Krzysztof Malysa [Thu, 11 Apr 2024 15:09:33 +0000 (17:09 +0200)]
Add CtapMessageProcessor tests

Change-Id: Iad114654fdfd6cf8c5100d1a49b7d08f6d75dfd3

13 months agoImplement state-assisted transaction in manual test 76/308576/13
Krzysztof Malysa [Wed, 27 Mar 2024 18:52:09 +0000 (19:52 +0100)]
Implement state-assisted transaction in manual test

Change-Id: I4c962720f444aff4089b4e2d249820a2f8dc09f5

13 months agoMerge "Add CBOR encoding and parsing tests" into tizen
Krzysztof Małysa [Tue, 16 Apr 2024 13:04:10 +0000 (13:04 +0000)]
Merge "Add CBOR encoding and parsing tests" into tizen

13 months agoAdd CBOR encoding and parsing tests 90/308390/38
Jan Wojtkowski [Fri, 12 Apr 2024 10:49:59 +0000 (12:49 +0200)]
Add CBOR encoding and parsing tests

Adjust cbor_parsing methods

Change-Id: I3274053b9a6ba8cc00bb93f60a1867a3e27eac0a

13 months agoRemove remnants of the abandoned interface 14/309514/6
Krzysztof Malysa [Thu, 11 Apr 2024 16:18:18 +0000 (18:18 +0200)]
Remove remnants of the abandoned interface

Change-Id: Ice9c04ca230b6f845c6ae752a7efb176b795a543

13 months agoHarden Tunnel against unexpected events 15/309515/5
Krzysztof Malysa [Thu, 11 Apr 2024 16:59:27 +0000 (18:59 +0200)]
Harden Tunnel against unexpected events

There were cases where there were unexpected events indicating errors
and the connection did hang instead of failing immediately. This commit
fixes such cases.

Change-Id: I91a17a5208eda15d199cd9d1fc65795246ad6d44

14 months agoChange BLE advert scanning to use exceptions 06/309606/1
Krzysztof Malysa [Fri, 12 Apr 2024 10:39:12 +0000 (12:39 +0200)]
Change BLE advert scanning to use exceptions

Change-Id: Ibf0c7f630b9e1dfd596fcacb8d783f98c6bdd274

14 months agoRemove dummy server log before test
Krzysztof Jackiewicz [Wed, 3 Apr 2024 19:15:21 +0000 (21:15 +0200)]
Remove dummy server log before test

Change-Id: I6f3e536859b6c0bbd1319765bfe438d97af4fa02

14 months agoAdd adding optional extra http header with Tunnel::Connect()
Krzysztof Malysa [Tue, 19 Mar 2024 13:28:57 +0000 (14:28 +0100)]
Add adding optional extra http header with Tunnel::Connect()

Change-Id: I928dbb4bb92dc55eda067e51bf2a3ac88dcb4625

14 months agoAutomate code coverage measurement
Dariusz Michaluk [Thu, 7 Mar 2024 11:47:01 +0000 (12:47 +0100)]
Automate code coverage measurement

To gather unit tests coverage report:
- use COVERAGE build_type,
- instal webauthn-ble-coverage rpm,
- run webauthn-ble-coverage.sh script.

Change-Id: Icf194a2157d46ec1f9d2fc657ccec73df211f671

14 months agoFix typos
Krzysztof Jackiewicz [Wed, 3 Apr 2024 10:20:10 +0000 (12:20 +0200)]
Fix typos

Change-Id: I40199c5804d533466c477121c9912405e65b869a

14 months agoCheck RP id hash from responses
Krzysztof Jackiewicz [Wed, 27 Mar 2024 13:32:17 +0000 (14:32 +0100)]
Check RP id hash from responses

Change-Id: I361624ad027caae1869059713362a4d91c5c1b27

14 months agoAdd URI parsing tests
Krzysztof Jackiewicz [Tue, 2 Apr 2024 16:37:15 +0000 (18:37 +0200)]
Add URI parsing tests

Change-Id: I25863d4879124c8221a593d323cf6442e4cdf666

14 months agoFix too small buffer in Websockets::DoClientConnect()
Krzysztof Malysa [Tue, 2 Apr 2024 12:07:35 +0000 (14:07 +0200)]
Fix too small buffer in Websockets::DoClientConnect()

Change-Id: I23ce05a1e71b10224747c88065f98e3d17a30b81

14 months agoAdd FDE2 BLE UUID for old apple devices
Dongsun Lee [Tue, 2 Apr 2024 02:55:09 +0000 (11:55 +0900)]
Add FDE2 BLE UUID for old apple devices

The old iPhone 14 with iOS 16.0.2 uses FDE2 as BLE UUID.

Change-Id: Id78addc5e75d0295a935b178cf6d11b2cc006e43

14 months agoAdd negative manual test
Krzysztof Jackiewicz [Thu, 28 Mar 2024 10:48:10 +0000 (11:48 +0100)]
Add negative manual test

Change-Id: I05425eb8bb2d215730e06a9877bc8841b6b0ec31

14 months agoMake manual test work with MC and GA CTAP commands
Krzysztof Malysa [Fri, 15 Mar 2024 19:48:34 +0000 (20:48 +0100)]
Make manual test work with MC and GA CTAP commands

Change-Id: I1fa3abebe0304395eb752fd4325b981e8df1d364

14 months agoMake cbor_encoding.cpp use cbor wrapper
Daniel Kita [Thu, 28 Mar 2024 11:25:05 +0000 (12:25 +0100)]
Make cbor_encoding.cpp use cbor wrapper

Change-Id: I79c1e4b8f3a74fcecd7984fe83f5e2c3408f880f

14 months agoFix QR code sometimes not being recognised on Samsung S22+
Krzysztof Malysa [Wed, 27 Mar 2024 17:57:48 +0000 (18:57 +0100)]
Fix QR code sometimes not being recognised on Samsung S22+

Change-Id: If482a9fb832285114cfb0f89a2b1407afe4ab3f9

14 months agoRemove unnecessary logging from CBOR tests 73/308573/1
Krzysztof Malysa [Wed, 27 Mar 2024 17:48:38 +0000 (18:48 +0100)]
Remove unnecessary logging from CBOR tests

Change-Id: Id86db9b60d21d87ba9efb18eb2f49dcff8dbd45f

14 months agoRemove unused README.md 34/308534/1
Dongsun Lee [Wed, 27 Mar 2024 06:09:37 +0000 (15:09 +0900)]
Remove unused README.md

Change-Id: I8c68b5c2fdcb4db2147c4f2d17537e1f5f9e7b74

14 months agoUpdate message parsing 43/307943/13
Krzysztof Jackiewicz [Thu, 14 Mar 2024 10:20:23 +0000 (11:20 +0100)]
Update message parsing

Change-Id: Ie65bc883ce81586816e20d28ca5585743005018e

14 months agoGet Assertion response parsing 44/307844/14
Krzysztof Jackiewicz [Wed, 13 Mar 2024 09:27:10 +0000 (10:27 +0100)]
Get Assertion response parsing

Change-Id: I1b095096095d159b27e4df899da23ada75b5b691

14 months agoGet assertion command serialization 32/307732/16
Krzysztof Jackiewicz [Tue, 12 Mar 2024 17:35:31 +0000 (18:35 +0100)]
Get assertion command serialization

Change-Id: Ic6f57137714bb6442c60903271e459212334f526

14 months agoMake Credential response parsing 42/307942/13
Krzysztof Jackiewicz [Thu, 14 Mar 2024 10:16:06 +0000 (11:16 +0100)]
Make Credential response parsing

Change-Id: I5f6211a7a4d42a50cb277003c42a4addffa0c078

14 months agoImplement shutdown message 13/307513/19
Krzysztof Jackiewicz [Mon, 11 Mar 2024 10:27:50 +0000 (11:27 +0100)]
Implement shutdown message

Change-Id: Iedb678f399ff0e0c7284148fc2bf1ca7d5f14eb8

14 months agoMake credential command serialization 12/307512/19
Krzysztof Jackiewicz [Mon, 11 Mar 2024 10:24:27 +0000 (11:24 +0100)]
Make credential command serialization

Change-Id: I9b8ed8fbd0506f567479ea7f7e91550c410af498

14 months agoFix empty buffer CBOR encoding 42/308442/1
Krzysztof Jackiewicz [Mon, 25 Mar 2024 08:41:31 +0000 (09:41 +0100)]
Fix empty buffer CBOR encoding

Change-Id: I08875411fc2455e68722fde71fb21fc984f01b68

14 months agoAdd RP ID validation 43/307843/9
Krzysztof Jackiewicz [Wed, 13 Mar 2024 16:37:24 +0000 (17:37 +0100)]
Add RP ID validation

Change-Id: Ie10bf02aaeaed029a4f47db258baebd31b4222c9

14 months agoImplement post handshake response parsing 08/307508/13
Krzysztof Jackiewicz [Mon, 11 Mar 2024 09:42:21 +0000 (10:42 +0100)]
Implement post handshake response parsing

Change-Id: I32c21f1d25aa91b282ca64698d6df3dfd7ad4bf1

14 months agoFix release build 48/308348/1
Krzysztof Jackiewicz [Thu, 21 Mar 2024 15:13:09 +0000 (16:13 +0100)]
Fix release build

Change-Id: I9582a453377f1051a4773426478bd84130a7e9b1

14 months agoAdd CBOR parsing & encoding helpers 07/307507/10
Krzysztof Jackiewicz [Mon, 11 Mar 2024 09:31:35 +0000 (10:31 +0100)]
Add CBOR parsing & encoding helpers

Change-Id: I974f510f5e52ff18b54b1df838e7acdfedcc32af

14 months agoFix tunnel to buffer incoming messages 72/308072/4
Krzysztof Malysa [Fri, 15 Mar 2024 15:40:10 +0000 (16:40 +0100)]
Fix tunnel to buffer incoming messages

Previously there was an assumption that there will be no incoming
message unless we read from the tunnel. Now this is relaxed so that
incoming messages e.g. during writting are buffered and returned later
on invoking ReadBinary().

Change-Id: I78e31bb6f477747694575fe170873c2efffee74e

14 months agoFix garbage at end validation 02/308202/1
Krzysztof Jackiewicz [Tue, 19 Mar 2024 13:06:08 +0000 (14:06 +0100)]
Fix garbage at end validation

Change-Id: I0a1ee6b05befc72b95fd0e935793fcdcc816f195

14 months agoAdd base64 encoding with tests 37/307837/4
Krzysztof Malysa [Wed, 13 Mar 2024 12:37:50 +0000 (13:37 +0100)]
Add base64 encoding with tests

Change-Id: I6ff0c241c84a7fdc38a9bc35b1c2c2b10200a2b5

15 months agoFix static analysis issues 07/307907/2 accepted/tizen/unified/20240315.111204 accepted/tizen/unified/20240315.155129 accepted/tizen/unified/x/20240319.055410
Tomasz Swierczek [Thu, 14 Mar 2024 06:31:09 +0000 (07:31 +0100)]
Fix static analysis issues

* Initialize missing fields of Tunnel & Bluetooth classes
* Add missing virtual destructor of IEnctyptedTunnel

Change-Id: I06e14167b4646897d2c2a382960d0fd9332d222d

15 months agoAdd compiler options for gcc13 71/307871/1 accepted/tizen/unified/x/20240314.073509
Dongsun Lee [Thu, 14 Mar 2024 02:18:58 +0000 (11:18 +0900)]
Add compiler options for gcc13

Change-Id: I50fa2b2252574420d08d26b6015d4abb8bbf04ca

15 months agoAdd #include <cstdef> to prevent size_t build issue 53/307753/1
Dongsun Lee [Wed, 13 Mar 2024 00:30:02 +0000 (09:30 +0900)]
Add #include <cstdef> to prevent size_t build issue

Change-Id: I467afaf24c0fefe51c7c9ad9bea683da576fe685

15 months agoFormatting fixes 10/307510/1
Krzysztof Jackiewicz [Mon, 11 Mar 2024 09:53:40 +0000 (10:53 +0100)]
Formatting fixes

Change-Id: Ie02d3d16f66bf6dc47cc7e573eaf4a35d5f9ed00

15 months agoEnable Wshadow and fix errors 46/307446/2 accepted/tizen/unified/20240311.170406
Krzysztof Jackiewicz [Fri, 8 Mar 2024 09:20:58 +0000 (10:20 +0100)]
Enable Wshadow and fix errors

It is used on some products causing build failures. Enable it and fix the
errors.

Change-Id: I90440acd793fceda387371185ede8664d50bd47a

15 months agoIncrease the usleep argument 31/307331/1
Krzysztof Jackiewicz [Thu, 7 Mar 2024 08:34:33 +0000 (09:34 +0100)]
Increase the usleep argument

This fixes the following SVACE defect:
For better performance VD recommends NOT to use less than 10'000us.

Change-Id: Ibdc6235b58919caf12ba36642ebcce207e7f0a3a

15 months agoRemove unnecessary crypto tests 82/305882/3
Dariusz Michaluk [Mon, 12 Feb 2024 15:32:43 +0000 (16:32 +0100)]
Remove unnecessary crypto tests

Considering security strength of HMAC & HKDF algorithms,
using empty input values has no much sense.

Additionally CTAP will use well-defined input parameters,
so such scenario will not occur in real use-case.

Change-Id: Iea2156e9ce7a9e1014dd5e9eec4273de696e4e66

15 months agoAdd Noise handshake in QrTransaction 79/305879/12
Krzysztof Malysa [Mon, 12 Feb 2024 13:55:26 +0000 (14:55 +0100)]
Add Noise handshake in QrTransaction

Change-Id: I6a7ae770c98d6fbf0b9f6e3e330a0419d85b08f9

15 months agoFix wrong cancellation callback id type and some typos 60/307160/2
Krzysztof Malysa [Tue, 5 Mar 2024 11:47:39 +0000 (12:47 +0100)]
Fix wrong cancellation callback id type and some typos

Change-Id: Id7fa989f4d4178bd535522fbf87043b79add9a41

15 months agoTunnel implementation 20/304920/28
Krzysztof Jackiewicz [Mon, 18 Dec 2023 13:52:38 +0000 (14:52 +0100)]
Tunnel implementation

Manual and automated tests included.

Change-Id: Ie921f938b55a770a76cd68d45b888b6665807c46

15 months agoFix test names in cbor_tests.cpp 51/306951/1
Daniel Kita [Thu, 29 Feb 2024 07:18:47 +0000 (08:18 +0100)]
Fix test names in cbor_tests.cpp

Change-Id: I5ed1236c75df89b845b3253739dc32aa2d33370a

15 months agoBtAdvertScanner: make cancel before awaiting cancel awaiting 92/306192/6
Krzysztof Malysa [Fri, 16 Feb 2024 16:10:33 +0000 (17:10 +0100)]
BtAdvertScanner: make cancel before awaiting cancel awaiting

Also, add test for randomly cancelling from the other thread.

Change-Id: I7644df82727a5273566fe0cc528ac5fd9f32f3ba