platform/core/test/security-tests.git
5 months agocynara: Add tests for PID credentials API 74/316574/4 cynara
Zofia Abramowska [Thu, 12 Dec 2024 14:08:45 +0000 (15:08 +0100)]
cynara: Add tests for PID credentials API

Change-Id: Idb6acd9f73f869bae4eb05c49f020f624bb16ed7

5 months agoMerge branch 'tizen' into cynara 21/316721/1
Dariusz Michaluk [Tue, 17 Dec 2024 11:24:23 +0000 (12:24 +0100)]
Merge branch 'tizen' into cynara

Change-Id: Ib839264067404999af44b77c3ff6cfdc7d25c2d1

5 months agoMerge branch 'ckm' into tizen 17/316717/1
Dariusz Michaluk [Tue, 17 Dec 2024 10:50:49 +0000 (11:50 +0100)]
Merge branch 'ckm' into tizen

Change-Id: Iaafaf37a699c40c8e27ebdaff27a587d96ccfa74

6 months agoAdd -Wno-alloc-size-larger-than 05/316305/1
Jakub Wlostowski [Thu, 12 Dec 2024 11:23:54 +0000 (12:23 +0100)]
Add -Wno-alloc-size-larger-than

Change-Id: I57da775857fe21e5be2a6ce0e323859776fdf510

6 months agocynara: lower some timeouts to seed up tests 61/315761/2
Krzysztof Malysa [Wed, 4 Dec 2024 12:04:02 +0000 (13:04 +0100)]
cynara: lower some timeouts to seed up tests

Change-Id: I2e9fa4d109621e82a1e4304726121c6c3e182cd8

6 months agocynara: fix tcag10_cancel_request test that sometimes failed 60/315760/2
Krzysztof Malysa [Wed, 4 Dec 2024 12:01:25 +0000 (13:01 +0100)]
cynara: fix tcag10_cancel_request test that sometimes failed

Change-Id: Iaf45697cd3d255fa1461d46cfec7686e5a8309d6

6 months agoMerge branch 'tizen' into cynara 85/315885/2
Tomasz Swierczek [Mon, 9 Dec 2024 08:37:56 +0000 (09:37 +0100)]
Merge branch 'tizen' into cynara

Change-Id: I261e4ac1a5d6074fcc437f779f74e6356e75a370

6 months agoMerge branch 'ckm' into tizen 84/315884/2
Tomasz Swierczek [Mon, 9 Dec 2024 08:23:18 +0000 (09:23 +0100)]
Merge branch 'ckm' into tizen

Change-Id: Icd1366f901a908c828d4185a7367ebef4c2eef75

6 months agoAdd test for allocations during app preparation 74/315974/2
Krzysztof Jackiewicz [Fri, 6 Dec 2024 19:38:11 +0000 (20:38 +0100)]
Add test for allocations during app preparation

Change-Id: I7540450868479a15d5be0448c8b7155b09746b7a

6 months agoFix x86_64 debug build issue 12/315612/2
Jakub Wlostowski [Tue, 3 Dec 2024 13:42:25 +0000 (14:42 +0100)]
Fix x86_64 debug build issue

Change-Id: I940ce244e53935156a5bf5d745dccb2be4e0661f

6 months agoFix 64bit build 75/315875/1
Krzysztof Jackiewicz [Fri, 29 Nov 2024 09:54:46 +0000 (10:54 +0100)]
Fix 64bit build

Change-Id: I1c308248820756da20fc572f8caf653a5f4c17b9

6 months agoFix building error after build flags update 96/320796/2
Jan Wojtkowski [Fri, 22 Nov 2024 08:31:50 +0000 (09:31 +0100)]
Fix building error after build flags update

Change-Id: I725586654155c0c64ad2e8f0c574a270805ae955

6 months agoReplace expired ca.crt certificate in PKCS chain 18/320918/1
Daniel Kita [Mon, 25 Nov 2024 14:45:35 +0000 (15:45 +0100)]
Replace expired ca.crt certificate in PKCS chain

Change-Id: I18ef509e06ea70f18a81e96290f1396f2be1b6be

6 months agoAdd tests for same alias case 61/320461/2
Krzysztof Jackiewicz [Fri, 15 Nov 2024 10:02:58 +0000 (11:02 +0100)]
Add tests for same alias case

Change-Id: Iac7cbddcaa89e94d2784de2584ccc97ea2fb77b3

7 months agoAdded tests for Update API. 72/315472/45
Andrei Vakulich [Thu, 18 Jul 2024 15:18:07 +0000 (17:18 +0200)]
Added tests for Update API.

Change-Id: I2948736744093c8d9d47e3af69502f6b4473d9a6

8 months agoEnable ECDSA import tests 97/318897/1
Jakub Wlostowski [Thu, 10 Oct 2024 14:22:28 +0000 (16:22 +0200)]
Enable ECDSA import tests

Change-Id: Ic5d2c33d10198fec470b0342d4e6943f0ef2b7c5

8 months agoAdd DSA import-sign-verify test 07/318107/2
Jakub Wlostowski [Tue, 24 Sep 2024 13:05:04 +0000 (15:05 +0200)]
Add DSA import-sign-verify test

Change-Id: Ibe05f1602bf909ff607c588d646331ddbd440de4

8 months agoRemove outdated DSA verification comments 89/318089/1
Jakub Wlostowski [Tue, 24 Sep 2024 10:34:51 +0000 (12:34 +0200)]
Remove outdated DSA verification comments

DSA verification was fixed in tef-simulator
so the comments are no longer true.

Change-Id: I8a1fbaea88652cb05e846183d5ac0efc74883b80

9 months agoTest getting/saving KEM keys in TZ 69/316869/1
Dariusz Michaluk [Thu, 29 Aug 2024 18:01:30 +0000 (20:01 +0200)]
Test getting/saving KEM keys in TZ

Change-Id: I99f95069a78eec69451656371dd53613f5691e6e

9 months agoAdd EC & PQC hybrid derivation test 42/316742/4
Dariusz Michaluk [Tue, 27 Aug 2024 12:41:59 +0000 (14:41 +0200)]
Add EC & PQC hybrid derivation test

Change-Id: I6d5c13d024dedb166f9cac0eac1dfc198d550fe7

9 months agoAdd testing KEM vectors 00/315700/17
Jakub Wlostowski [Tue, 6 Aug 2024 10:15:54 +0000 (12:15 +0200)]
Add testing KEM vectors

Change-Id: I443a99dcb4cb7b4b288084db50e6b167715cd860

9 months agoCheck PQC API protection 11/315411/13
Jakub Wlostowski [Wed, 31 Jul 2024 14:40:48 +0000 (16:40 +0200)]
Check PQC API protection

Change-Id: Id88a64ed78395b4b02b02de350169db4b1e4f7ba

9 months agoAdd ML-KEM derive hybrid tests 40/315340/19
Jakub Wlostowski [Tue, 30 Jul 2024 08:19:39 +0000 (10:19 +0200)]
Add ML-KEM derive hybrid tests

Change-Id: Ic1e09cc65f9d5afad44df70e2b9119bb66ee7580

9 months agoAdd ML-KEM (en/de)capsulation tests 79/315079/20
Jakub Wlostowski [Wed, 24 Jul 2024 11:59:40 +0000 (13:59 +0200)]
Add ML-KEM (en/de)capsulation tests

Change-Id: I521649fb59a464c7cf96fb08682d44ff1abde71d

9 months agoAdd ML-KEM keypair creation tests 11/314511/28
Jakub Wlostowski [Fri, 12 Jul 2024 11:39:39 +0000 (13:39 +0200)]
Add ML-KEM keypair creation tests

Change-Id: Id6d174d98066e65e0371498672a57ae001ab059e

10 months agoAdd cynara performance tests 54/314754/2
Krzysztof Malysa [Thu, 18 Jul 2024 10:25:04 +0000 (12:25 +0200)]
Add cynara performance tests

Change-Id: I32a64f3031182d67998d7e48c3dccea595894410

10 months agoFix maybe-uninitialized error 73/315873/2
Jakub Wlostowski [Thu, 8 Aug 2024 09:19:31 +0000 (11:19 +0200)]
Fix maybe-uninitialized error

Change-Id: I32e2b68d7b7851975ccc90a162a9d1603eda884c

11 months agoFix wrapping tests 47/314347/1
Dariusz Michaluk [Wed, 10 Jul 2024 08:54:05 +0000 (10:54 +0200)]
Fix wrapping tests

Wrapping function should always use public key,
unwrapping is made with private key.

Change-Id: I4628de66596d7fe155b93a461467724c6e8d708e

11 months agoAdded key and data backend checks to tests 82/312482/19
Andrei Vakulich [Fri, 7 Jun 2024 12:32:25 +0000 (14:32 +0200)]
Added key and data backend checks to tests

Checks were added to tests: e2ee-adaptation-layer,
key-derivation, key-wrapping, capi-testcases.

Change-Id: I4c310c0ee56dcb5d5b8557bbc02c5424efdf6b9f

11 months agoAdd extended privilege integration tests 82/313482/2
Filip Skrzeczkowski [Wed, 26 Jun 2024 13:59:49 +0000 (15:59 +0200)]
Add extended privilege integration tests

Change-Id: Idf6054cefab577b99216daffa1436157484e96b8

11 months agoFix build error on 64 bit arch 41/313241/2
Dariusz Michaluk [Thu, 20 Jun 2024 08:40:18 +0000 (10:40 +0200)]
Fix build error on 64 bit arch

Change-Id: I7761781ce448dd91fe6fd382e05a2eaa42d69f0a

12 months agoAdd more tests to the concatenated wrapping API 94/311294/21
Jan Wojtkowski [Fri, 17 May 2024 09:33:29 +0000 (11:33 +0200)]
Add more tests to the concatenated wrapping API

Change-Id: I1c4166512e1fe8f7366238459161711a460e449b

12 months agoFix systemdb tests 05/312305/2
Krzysztof Jackiewicz [Fri, 7 Jun 2024 09:50:03 +0000 (11:50 +0200)]
Fix systemdb tests

Add missing database cleanup to system db tests.

Fix failing T5044_SYSTEM_SVC_5000_ACCESS_DB. The expected error is
CKMC_ERROR_DB_ALIAS_UNKNOWN because user 5000 is not a system service and does
not know about the alias stored in the system db.

Change-Id: I824cd1d3c6504a67215a9094eaa510849d1330bc

12 months agoImprove access control tests 61/311461/11
Andrei Vakulich [Fri, 17 May 2024 17:55:25 +0000 (19:55 +0200)]
Improve access control tests

Change-Id: I8bcc999acc3dd83a48d90fa9e12e6766cbbc0212

12 months agoAdd concatenated wrapping API tests 36/311136/5
Dariusz Michaluk [Thu, 9 May 2024 14:00:25 +0000 (16:00 +0200)]
Add concatenated wrapping API tests

Change-Id: I9ab387af866dae43b54ba59cd779d557d560b41d

12 months agoAdjust tests to implementation changes 35/311135/4
Dariusz Michaluk [Fri, 10 May 2024 09:49:45 +0000 (11:49 +0200)]
Adjust tests to implementation changes

Allow using SHA384 & SHA512 with RSA OAEP

Change-Id: Iaf60a99d5046c94cce0c370ce4d1660886720f59

12 months agoAdd privileged tests for REMOVE only permission 45/311145/4
Andrei Vakulich [Tue, 14 May 2024 07:57:22 +0000 (09:57 +0200)]
Add privileged tests for REMOVE only permission

Check if ckmc_get_data_alias_info_list and
ckmc_get_data_alias_list return info for READ only
and REMOVE only permission

Change-Id: Iac50c1e0c23560c88eb3d5c74ec4c450a52d3a50

13 months agoAdd test-cases for RSA 3072 15/308115/3
Dongsun Lee [Mon, 18 Mar 2024 06:59:08 +0000 (15:59 +0900)]
Add test-cases for RSA 3072

Change-Id: I9a42988035717b8bb128a4dc06add83c080e9cbc

13 months agoAdd vscode settings to .gitignore 75/309975/2
Jan Wojtkowski [Thu, 18 Apr 2024 13:12:19 +0000 (15:12 +0200)]
Add vscode settings to .gitignore

Change-Id: I68f6f7941e7f9f9cbba86c5c03fc461c5cb9bb72

14 months agoTemporarily disable positive ocsp tests due to firewall/dns issues 11/308911/1
Filip Skrzeczkowski [Tue, 2 Apr 2024 13:54:07 +0000 (15:54 +0200)]
Temporarily disable positive ocsp tests due to firewall/dns issues

Change-Id: I85b714e1f38afaf25b111d54a0694b2e5327ed0d

15 months agoAdd TCs for exporting RSA public key from TZ 04/306604/5
Dongsun Lee [Wed, 21 Feb 2024 02:32:29 +0000 (11:32 +0900)]
Add TCs for exporting RSA public key from TZ

Change-Id: I0fe80a888581104eb38f99bf1a9780092b784953

15 months agoAdd old_tee compile-time option 07/305907/5
Tomasz Swierczek [Tue, 13 Feb 2024 08:51:33 +0000 (09:51 +0100)]
Add old_tee compile-time option

This setting can be used in pair with tz_backend compile-time
flag to disable some algorithms not supported on older TEE
backends.

Currently unsupported: RSA & DSA 4096

Change-Id: I5a0e04ca604a034a07a68717f547ccacb59b17d3

15 months agoAdjust tests to "ECDSA raw/asn1 signature conversion methods" 92/307092/1
Dariusz Michaluk [Mon, 4 Mar 2024 16:51:01 +0000 (17:51 +0100)]
Adjust tests to "ECDSA raw/asn1 signature conversion methods"

If the ECDSA signature is presented in asn1 format, the first byte is always asn1 metadata,
it's better to change the last byte, which will always be signature data.

Change-Id: I6ec694dc17598f5931ef12ab15701c15138755f0

19 months agoAdd test for RSA OAEP wrapping with different hashes 64/300064/1
Krzysztof Jackiewicz [Mon, 16 Oct 2023 07:40:09 +0000 (09:40 +0200)]
Add test for RSA OAEP wrapping with different hashes

Change-Id: I9a06501cdb67fe2ac8558b694b0e49b12c7e793f

20 months agoApply VD test modifications 06/298806/7
Krzysztof Jackiewicz [Mon, 14 Aug 2023 14:31:57 +0000 (16:31 +0200)]
Apply VD test modifications

* Add EC public key export tests.
* Add EC key/cert import tests.
* Add TZ_EC_IMPORT build flag. EC import is not required by E2EE but is
  implemented in VD backend. Tests importing EC keys are disabled by
  default.
* Use ckmc_backend_get_max_chunk_size to obtain the maximum "big data"
  size supported by the backend.
* Update and add DSA import/signature/verification tests.
* Don't use GCM IV longer than 63B as VD's backend does not support
  them.
* Make keys unexportable where needed so that TZ backend is used
  whenever possible.
* Compare unexportable keys by comparing encryption results.
* Limit the amount of code applicable to SW backend only.
* Don't expect CBC import (decryption) to fail always when wrong key is
  used. It may indeed fail if the padding is broken but it doesn't have
  to be the case.
* Add comments explaining the source of failure on tizen.org's backend
  implementation.

Change-Id: Ie98915ff1010af67ba9c44e8727813fa895c1979

20 months agoAdd tests for different OAEP hashes 11/299311/5
Krzysztof Jackiewicz [Mon, 25 Sep 2023 09:52:51 +0000 (11:52 +0200)]
Add tests for different OAEP hashes

Change-Id: If15830a880bd4ffb9f546afd55d885a78ece37c5

20 months agoAdjust tests to changes related to x9.31 72/299472/3
Krzysztof Jackiewicz [Fri, 29 Sep 2023 11:29:57 +0000 (13:29 +0200)]
Adjust tests to changes related to x9.31

X9.31 padding can not be used without a hashing function. Openssl does
not allow it. Adjust test to key-manager changes.

Change-Id: I23771afc3dedb4d05b241d17ade39eb9c13d52a1

20 months agouse the same parameters as E2EE modulue in e2ee-adaptation-layer TCs 11/299111/3
Dongsun Lee [Wed, 20 Sep 2023 03:02:35 +0000 (12:02 +0900)]
use the same parameters as E2EE modulue in e2ee-adaptation-layer TCs

Change-Id: I7579666aadcca7197d22dd35bc567b231f3fecbf

20 months agoadd a TC of TKW_IMPORT_EXPORT_AES_BETWEEN_BACKENDS 22/299022/4
Dongsun Lee [Mon, 18 Sep 2023 09:20:23 +0000 (18:20 +0900)]
add a TC of TKW_IMPORT_EXPORT_AES_BETWEEN_BACKENDS

Change-Id: If1dacae546b932181b79de7382455cf75623b514

22 months agoCKM: Adjust privileged tests to TZ 38/297238/1
Krzysztof Jackiewicz [Fri, 11 Aug 2023 15:06:49 +0000 (17:06 +0200)]
CKM: Adjust privileged tests to TZ

TZ backend does not support import of password protected keys

T7010_Encrypted_initial_values_asymmetric fails on tef-simulator at
initial-values.cpp:331 because of DSA usage.

Change-Id: Ida594496dc58f30e907a864e4b5d982451f4e014

22 months agoCKM: Adjust tests to TZ backend capabilities 35/297135/2
Krzysztof Jackiewicz [Thu, 10 Aug 2023 19:10:37 +0000 (21:10 +0200)]
CKM: Adjust tests to TZ backend capabilities

No support for EC import in TZ.
No support for other hashes beside SHA1 in DS (TZ).
Adjust the tests temporarily.

Change-Id: I3604264af27cf5f5eda4758811b5d2fcf92943b3

22 months agoCKM: Don't use IV less than 12 bytes for TZ Backend 74/297174/2
Dongsun Lee [Fri, 11 Aug 2023 06:18:22 +0000 (15:18 +0900)]
CKM: Don't use IV less than 12 bytes for TZ Backend

Change-Id: I19b51a312e6ac29bb09f927a10db4571acca470a

22 months agoCKM: Don't set password for importing asymmetric key to TZ_BACKEND 73/297173/2
Dongsun Lee [Fri, 11 Aug 2023 05:08:29 +0000 (14:08 +0900)]
CKM: Don't set password for importing asymmetric key to TZ_BACKEND

Change-Id: I05fd59f4d3171e8a1af6a0587e569903250b3591

22 months agoE2EE: Make one of the test keys exportable 96/296996/2
Krzysztof Jackiewicz [Tue, 8 Aug 2023 15:12:18 +0000 (17:12 +0200)]
E2EE: Make one of the test keys exportable

This way we can compare results of ECDH+KBKDF between different
backends.

Change-Id: I8022462ea59968d04f0522ab39bfeb0533b7ade4

22 months agoE2EE: Cleanup TZ data after tests 95/296995/2
Krzysztof Jackiewicz [Tue, 8 Aug 2023 14:59:37 +0000 (16:59 +0200)]
E2EE: Cleanup TZ data after tests

Change-Id: I2edc6e1fdec3b6be6db1cf4cd9781568597eb985

22 months agoCKM: Update ECDH TCs for TZ Backend 14/296714/3
Dongsun Lee [Thu, 3 Aug 2023 09:15:06 +0000 (18:15 +0900)]
CKM: Update ECDH TCs for TZ Backend

Change-Id: I2249411fcc60c858d9cbaacb676de93da59590da

22 months agoCKM: Support ECDSA tests for TZ Backend 56/296656/2
Dongsun Lee [Thu, 3 Aug 2023 00:25:51 +0000 (09:25 +0900)]
CKM: Support ECDSA tests for TZ Backend

Change-Id: I6a9605fb81e27b77425dddfd56db0c9b261b3a60

22 months agoCKM: modify Wrapping/Unwrapping TCs for Backend 05/296505/3
Dongsun Lee [Mon, 31 Jul 2023 00:49:22 +0000 (09:49 +0900)]
CKM: modify Wrapping/Unwrapping TCs for Backend

Change-Id: I54609e0bd081fc277066791b13f73452fb14a5cd

22 months agoCKM: modify KBKDF TCs for TZ Backend 98/296498/2
Dongsun Lee [Tue, 25 Jul 2023 09:32:33 +0000 (18:32 +0900)]
CKM: modify KBKDF TCs for TZ Backend

Change-Id: I4db0db61b2da46648aba99df06579ab3de0bf590

22 months agoCKM: Expect fail when wrapping/unwrapping RSA keys 62/296262/1
Krzysztof Jackiewicz [Mon, 24 Jul 2023 11:29:46 +0000 (13:29 +0200)]
CKM: Expect fail when wrapping/unwrapping RSA keys

Change-Id: Id0d235961ba57ebf6ec849f209253d104edcb493

22 months agoCKM: Remove keys explicitly in derivation tests 48/296248/1
Krzysztof Jackiewicz [Mon, 24 Jul 2023 08:38:42 +0000 (10:38 +0200)]
CKM: Remove keys explicitly in derivation tests

Removing the user data is not enough in case of TZ backend. Without
explicit removal objects remain in TZ storage.

Change-Id: Id9652be186610322ea913f74ff8504f66ac8232e

23 months agoCKM: Fix policy generation and expectation 44/295844/3
Krzysztof Jackiewicz [Fri, 14 Jul 2023 07:53:16 +0000 (09:53 +0200)]
CKM: Fix policy generation and expectation

Some of the possible policy setups were skipped. Make the generate_ckm_policy()
generate all possible combinations.

Expect backend depending on the policy's extractable flag in T1024

Change-Id: I1bd0f5b1a544c8385fdd9c66d23cbd5385137cd0

23 months agoCKM: Disable remaining non-GCM tests on TZ 68/295768/1
Krzysztof Jackiewicz [Thu, 13 Jul 2023 09:20:56 +0000 (11:20 +0200)]
CKM: Disable remaining non-GCM tests on TZ

Change-Id: Ic92469494c666ba506229b0eb70d0cc29bfde29d

23 months agoCKM: Disable non-GCM tests in TZ cipher API 07/295707/1
Krzysztof Jackiewicz [Wed, 12 Jul 2023 13:43:36 +0000 (15:43 +0200)]
CKM: Disable non-GCM tests in TZ cipher API

Currently TZ backend cipher API does not support other encryption modes
beside GCM.

Change-Id: I0fad8ba60b3081af0601f07ac92f724cc88f2fc0

23 months agoCKM: Use public key for key wrapping 55/294855/4
Krzysztof Jackiewicz [Tue, 27 Jun 2023 15:38:13 +0000 (17:38 +0200)]
CKM: Use public key for key wrapping

Private key contains the public key and it (the public key) is actually
used for encryption so the testing code is ok. However, to make it
clearer, the public key will be used explicitly.

Change-Id: I8599710b3c5b03675811b1c527b59efbc5006d00

23 months agoCKM: Test for invalid wrapped key type 54/294854/1
Krzysztof Jackiewicz [Tue, 27 Jun 2023 12:07:34 +0000 (14:07 +0200)]
CKM: Test for invalid wrapped key type

Change-Id: Ia6245e6943ed769c426a51d8cde4d66f781e7896

23 months agoMerge branch 'tizen' into cynara 53/294653/1
Dariusz Michaluk [Thu, 22 Jun 2023 07:53:22 +0000 (09:53 +0200)]
Merge branch 'tizen' into cynara

Change-Id: Ie59592257d67782842d714539b1371600995f955

23 months agoMerge branch 'ckm' into tizen 49/294649/1
Dariusz Michaluk [Thu, 22 Jun 2023 07:28:24 +0000 (09:28 +0200)]
Merge branch 'ckm' into tizen

Change-Id: Ia4bb16867447fd4d661a8578e21a7131a2cd16ad

2 years agoCKM: Max chunk size test 92/293892/5
Krzysztof Jackiewicz [Wed, 7 Jun 2023 11:47:29 +0000 (13:47 +0200)]
CKM: Max chunk size test

Change-Id: If9524ee246dde5e1992005c8f8950577b907607c

2 years agoCKM: Check backend info 84/293884/2
Krzysztof Jackiewicz [Tue, 6 Jun 2023 19:43:38 +0000 (21:43 +0200)]
CKM: Check backend info

Change-Id: I79501b5800b54790c45dd7a1790178e5805a4d6a

2 years agoCKM: Adjust tests to AliasInfo changes 53/293653/3
Krzysztof Jackiewicz [Thu, 1 Jun 2023 13:20:43 +0000 (15:20 +0200)]
CKM: Adjust tests to AliasInfo changes

Change-Id: Id1c3b12fdc7bdba4fd73a49c9ae9ad411635fb8d

2 years agoCKM: Cipher API tests 34/293334/6
Krzysztof Jackiewicz [Wed, 24 May 2023 10:31:42 +0000 (12:31 +0200)]
CKM: Cipher API tests

Also reduce big data size to speed up the testing

Change-Id: I8ea762d4aecdfdc6c57f12f5a708185e68830858

2 years agoCKM: Update GCM IV tests 72/293272/1
Krzysztof Jackiewicz [Mon, 22 May 2023 20:03:49 +0000 (22:03 +0200)]
CKM: Update GCM IV tests

More lengths are now allowed.

Change-Id: I84a38b7469ac6d8c96c746816eb2b7df20125d3f

2 years agoCKM: Adjust to C++ API changes 06/292406/1
Krzysztof Jackiewicz [Fri, 5 May 2023 10:18:06 +0000 (12:18 +0200)]
CKM: Adjust to C++ API changes

Change-Id: I1812ee6ef9d9552dcda560df0b492171fab0799f

2 years agoMerge branch 'tizen' into cynara 75/292375/1
Dariusz Michaluk [Thu, 4 May 2023 10:03:53 +0000 (12:03 +0200)]
Merge branch 'tizen' into cynara

Change-Id: I7835a1fbfbf4c859d3e0bc0c9773d601ea5a2712

2 years agoMerge branch 'ckm' into tizen 66/292366/1
Dariusz Michaluk [Thu, 4 May 2023 09:49:13 +0000 (11:49 +0200)]
Merge branch 'ckm' into tizen

Change-Id: Ic29c282ec17e5094b2f66c7140ddc3bf28921287

2 years agoRevert DCM E2EE API tests 42/292142/2
Dariusz Michaluk [Thu, 27 Apr 2023 13:16:56 +0000 (15:16 +0200)]
Revert DCM E2EE API tests

Change-Id: I1f9737346cccb3c0df5ed5860900c0701b18ce88

2 years agoAdd DCM_ERROR_MSG_FORMAT error enum 32/292032/2
Dariusz Michaluk [Wed, 26 Apr 2023 09:34:52 +0000 (11:34 +0200)]
Add DCM_ERROR_MSG_FORMAT error enum

Change-Id: Iaff70e15facebfdfba977396640ab7d6d572a8af

2 years agoEnable 2-element OCF certificate chain tests 99/291499/2
Dariusz Michaluk [Mon, 17 Apr 2023 13:00:10 +0000 (15:00 +0200)]
Enable 2-element OCF certificate chain tests

Change-Id: Iaeba40710a501b5990c69d503960a201d8c4245b

2 years agoCKM: Add extra key-wrapping tests 94/291394/2
Daniel Kita [Fri, 14 Apr 2023 08:47:59 +0000 (10:47 +0200)]
CKM: Add extra key-wrapping tests

Change-Id: Ibe366afd9a5f1b007e2a1e5bad9fddb4eff32397

2 years agoMerge branch 'tizen' into ckm 02/291202/1
Dariusz Michaluk [Tue, 11 Apr 2023 13:01:14 +0000 (15:01 +0200)]
Merge branch 'tizen' into ckm

Change-Id: I495f825f5d786a58289f044b9c23b78f7c7b3ab6

2 years agoMerge branch 'tizen' into cynara 01/291201/1
Dariusz Michaluk [Tue, 11 Apr 2023 12:57:44 +0000 (14:57 +0200)]
Merge branch 'tizen' into cynara

Change-Id: I41ce5eaa10767bae4e92f286812ad8deedc19101

2 years agoMerge branch 'ckm' into tizen 99/291199/1 tizen_6.5 tizen_7.0
Dariusz Michaluk [Tue, 11 Apr 2023 12:22:38 +0000 (14:22 +0200)]
Merge branch 'ckm' into tizen

Change-Id: I568bc8337c9fca77181af04283efd7c28e1ddcdc

2 years agoMerge branch 'security-manager' into tizen 28/291028/1
Dariusz Michaluk [Thu, 6 Apr 2023 13:35:18 +0000 (15:35 +0200)]
Merge branch 'security-manager' into tizen

Change-Id: Ibb0dedb8f9f31171e4339661076cb1ddf13a0c7e

2 years agoMerge branch 'cynara' into tizen 27/291027/1
Dariusz Michaluk [Thu, 6 Apr 2023 13:19:52 +0000 (15:19 +0200)]
Merge branch 'cynara' into tizen

Change-Id: Id4ecdfb9196c230400007bc6f5f88c30c97f3cf5

2 years agoRemove perf dependency 07/291007/1
Dariusz Michaluk [Thu, 6 Apr 2023 09:19:48 +0000 (11:19 +0200)]
Remove perf dependency

perf is not provided on tizen.org

Change-Id: I1402c2b6a4f5f6d5cf9b180258bed49acb9b062a

2 years agoSet key-manager version requirement 01/290801/3
Krzysztof Jackiewicz [Mon, 3 Apr 2023 09:15:58 +0000 (11:15 +0200)]
Set key-manager version requirement

E2EE is supported since 0.1.49

Change-Id: Ibaf2a2153eb3d9c4c2b020db3130b403b4ba351a

2 years agoCKM: Add key-wrapping tests 81/289981/16 e2ee
Daniel Kita [Thu, 16 Mar 2023 12:14:30 +0000 (13:14 +0100)]
CKM: Add key-wrapping tests

Change-Id: I99fce2906c245d0b8174e1b3b15f990535b39caf

2 years agoE2EE: Require e2ee-tests to be ran by default user 22/290222/1
Krzysztof Jackiewicz [Tue, 21 Mar 2023 16:32:43 +0000 (17:32 +0100)]
E2EE: Require e2ee-tests to be ran by default user

Change-Id: I87e1b8b68f91d4410144e4b986022da49e58fe24

2 years agoE2EE: OCF API implementation 16/289116/11
Krzysztof Jackiewicz [Wed, 1 Mar 2023 09:54:50 +0000 (10:54 +0100)]
E2EE: OCF API implementation

Tests included.

Change-Id: I04a3b56d66b51b5508e7fa4f14d923e876122f78

2 years agoE2EE: PBKDF API implementation 15/289115/10
Krzysztof Jackiewicz [Fri, 24 Feb 2023 08:58:28 +0000 (09:58 +0100)]
E2EE: PBKDF API implementation

Tests included

Change-Id: I4cbe3363690ff116a8c26dba3e6bfca8d9e0dad5

2 years agoE2EE: Key agreement API implementation 14/289114/10
Krzysztof Jackiewicz [Wed, 1 Mar 2023 09:54:21 +0000 (10:54 +0100)]
E2EE: Key agreement API implementation

Tests included

Change-Id: Iab51c84b848060f3392cb11de7dedd7ab2580034

2 years agoE2EE: Adaptation layer API 64/287564/11
Krzysztof Jackiewicz [Wed, 18 Jan 2023 07:19:30 +0000 (08:19 +0100)]
E2EE: Adaptation layer API

Change-Id: Id16918721d65af96795104c1ccea229b5aa1a65a

2 years agoCKM: Add KBKDF tests 32/288832/6
Krzysztof Jackiewicz [Thu, 23 Feb 2023 09:14:43 +0000 (10:14 +0100)]
CKM: Add KBKDF tests

Change-Id: I8af39566757c6f3b4e9ca82184f9f99708c3271a

2 years agoCKM: Add ECDH tests 34/288534/7
Krzysztof Jackiewicz [Fri, 17 Feb 2023 10:39:10 +0000 (11:39 +0100)]
CKM: Add ECDH tests

Change-Id: I79dc55e11c9c61db1074b1e70a856999d4632d56

2 years agoCKM: Remove unused typedef 81/289281/4
Krzysztof Jackiewicz [Fri, 3 Mar 2023 13:35:26 +0000 (14:35 +0100)]
CKM: Remove unused typedef

Change-Id: Id0c756f0af4dfda7a6fb9af5a7c397d2111f4862

2 years agoCKM: Saving unexportable data is now allowed 31/288831/5
Krzysztof Jackiewicz [Thu, 23 Feb 2023 09:07:34 +0000 (10:07 +0100)]
CKM: Saving unexportable data is now allowed

Change-Id: Idfc450ee67d26a0389c62076b8401339c6404362

2 years agoCKM: Helper functions refactored 33/288533/5
Krzysztof Jackiewicz [Fri, 17 Feb 2023 17:03:28 +0000 (18:03 +0100)]
CKM: Helper functions refactored

Functions moved to ckm-common.h to be accessible by other test cases.
Use unsigned integer in param lists.
Use pointers to buffers in buffer comparison.

Change-Id: I6d094cc4fc202be2a047861548f157775fe17a60

2 years agoAdd test cases for updating an app package 60/283060/4
Tomasz Swierczek [Mon, 17 Oct 2022 11:03:52 +0000 (13:03 +0200)]
Add test cases for updating an app package

security_manager_app_update() should be able
to remove apps not listed in update request
regardless of hybrid status of the package.

Change-Id: Icc25bf37969964426c356921f3ac7db661843955

2 years agoMerge branch 'ckm' into tizen
Dariusz Michaluk [Mon, 9 Jan 2023 14:06:28 +0000 (15:06 +0100)]
Merge branch 'ckm' into tizen

Change-Id: Ia90081c32b85a24ebd01d8f7f2e76ebae5399d0f