platform/core/test/security-tests.git
7 years agoSM : Add MessagePipe 77/91677/3
Zofia Abramowska [Mon, 10 Oct 2016 14:09:07 +0000 (16:09 +0200)]
SM : Add MessagePipe

Change-Id: I720056bc27c837914ed56ee36bca1512093ac4a9

7 years agoSM : Enhance ScopedInstaller 76/91676/3
Zofia Abramowska [Mon, 10 Oct 2016 10:58:04 +0000 (12:58 +0200)]
SM : Enhance ScopedInstaller

 * Add requestUid parameter to test without explicitly
   given uid
 * Add guard for uninstalling

Change-Id: I8b5fee86094cd4ad062643a8441f114809be2584

7 years agoSM : Set offline default value for TemporaryTestUser constructor 75/91675/3
Zofia Abramowska [Mon, 10 Oct 2016 10:57:32 +0000 (12:57 +0200)]
SM : Set offline default value for TemporaryTestUser constructor

Change-Id: Ib79c90baa50b11b012c9811ef306aabb70576e85

7 years agoSM : Add generating label for shared RO paths 74/91674/3
Zofia Abramowska [Thu, 6 Oct 2016 13:01:33 +0000 (15:01 +0200)]
SM : Add generating label for shared RO paths

Change-Id: I03596143f11e733e7c7bfca9b167ccc475e2c426

7 years agoSM : Add transmute and exec params to check_path 73/91673/3
Zofia Abramowska [Thu, 6 Oct 2016 12:12:45 +0000 (14:12 +0200)]
SM : Add transmute and exec params to check_path

Change-Id: Ie779b3e36bc815cd2c2dc46b0c9cd0ab50be9428

7 years agoSM : Normalize TemporaryTestUser getUidString method 72/91672/3
Zofia Abramowska [Mon, 10 Oct 2016 11:05:22 +0000 (13:05 +0200)]
SM : Normalize TemporaryTestUser getUidString method

Change-Id: I0a2640fa40f34070de92dfaeed5223c89bcd8d49

7 years agoSM : Use std::string instead of const char * 38/89038/5
Zofia Abramowska [Wed, 21 Sep 2016 14:31:51 +0000 (16:31 +0200)]
SM : Use std::string instead of const char *

Change-Id: I11fb526667e03192331d93d4352f9383e025987c

7 years agoSM : Propagate isHybrid flag in checks 37/89037/4
Zofia Abramowska [Tue, 20 Sep 2016 17:36:27 +0000 (19:36 +0200)]
SM : Propagate isHybrid flag in checks

Change-Id: I1bd8a40abcd0bc19821827e170c1fd3c7d2d89a4

7 years agoSM : Enhance AppInstallHelper 36/89036/4
Zofia Abramowska [Tue, 20 Sep 2016 17:36:17 +0000 (19:36 +0200)]
SM : Enhance AppInstallHelper

* Split into header and source file
* Fix constructors
* Change default uid
* Add creating public dir
* Add privileges
* Add install type
* Add author

Change-Id: I1797c64c6cacd9ba4b52169b03b338d388e2a004

7 years agoSM : Adjust tests for unification of smack accesses to application 31/91931/1
Mateusz Forc [Wed, 12 Oct 2016 07:39:15 +0000 (09:39 +0200)]
SM : Adjust tests for unification of smack accesses to application

Change-Id: I0d758dc49badb6a7ce47245beabc80f5604baff9

7 years agoSM: Adjust creds tests to nonhybrid apps 73/88273/4
Zofia Abramowska [Thu, 15 Sep 2016 13:43:09 +0000 (15:43 +0200)]
SM: Adjust creds tests to nonhybrid apps

Change-Id: Ib91793dc8dc7a1cc5659f8e38182929b45e465be

7 years agoSM: Adjust trusted sharing tests to nonhybrid apps 72/88272/4
Zofia Abramowska [Thu, 15 Sep 2016 13:14:15 +0000 (15:14 +0200)]
SM: Adjust trusted sharing tests to nonhybrid apps

Change-Id: If39ea63f87150a49285e4b4f5b044f193e72eeab

7 years agoSM: Change process label generation 96/87596/4
Zofia Abramowska [Thu, 8 Sep 2016 17:57:46 +0000 (19:57 +0200)]
SM: Change process label generation

Change-Id: I36365303a07ef94e0a62a16fa0adf6824ca6c8c5

7 years agoSM: Add identify app from cynara client tests 52/88552/2
Zofia Abramowska [Fri, 16 Sep 2016 10:11:10 +0000 (12:11 +0200)]
SM: Add identify app from cynara client tests

Change-Id: Ia1a167d3efdf851dea9de317dd428f50c68e46b7

7 years agoSM : Adjust tests for new shared RO support 22/88522/7
Mateusz Forc [Mon, 19 Sep 2016 10:58:17 +0000 (12:58 +0200)]
SM : Adjust tests for new shared RO support

SharedRO accesses now are applied to all applications,
not only tizen 2.X ones

Change-Id: Ibe65bab965476c70865011bcb7648561a6688a2e

7 years agoSM : Add ScopedInstaller and ScopedPathRemover classes 21/88521/6
Mateusz Forc [Mon, 19 Sep 2016 10:57:26 +0000 (12:57 +0200)]
SM : Add ScopedInstaller and ScopedPathRemover classes

Classes enable proper app installation per test
and sharedRO path cleanup for multiple apps in one package

Change-Id: Ib33d2e6e45b78a3841e88e8d7046231e6b2ba93c

7 years agoSM : Modify AppInstallHelper class 20/88520/6
Mateusz Forc [Mon, 19 Sep 2016 10:56:54 +0000 (12:56 +0200)]
SM : Modify AppInstallHelper class

* Add local installation
* Change vector of dirs to map (path,pathType)
* Add support of user UID,GID
* Fix sharedRO path cleanup
Change-Id: I4d34162fa237d4037a21a3b999e56977961f9a16

7 years agoSM: Add tests for NSS plugin 28/86328/9
Bartlomiej Grzelewski [Fri, 2 Sep 2016 13:17:44 +0000 (15:17 +0200)]
SM: Add tests for NSS plugin

Change-Id: I7e3e387869efdb2cad1c868aa3ab4c12dc09c815

7 years agoMerge branch 'tizen' into security-manager 66/88366/1
Zbigniew Jasinski [Fri, 16 Sep 2016 12:13:07 +0000 (14:13 +0200)]
Merge branch 'tizen' into security-manager

Signed-off-by: Zbigniew Jasinski <z.jasinski@samsung.com>
Conflicts:
src/common/tests_common.cpp
src/common/tests_common.h

Change-Id: Ic2301d3414aad2be4488eb04c59e217e184037ca

7 years agoMerge branch 'cynara' into tizen 58/88358/1
Zofia Abramowska [Fri, 16 Sep 2016 11:42:51 +0000 (13:42 +0200)]
Merge branch 'cynara' into tizen

Change-Id: I07b0796b3e8c215cdf7f565fbdf9296467646b8b

7 years agoCynara: Move Cynara helper credentials to global commons 52/88352/1
Zofia Abramowska [Fri, 16 Sep 2016 10:16:43 +0000 (12:16 +0200)]
Cynara: Move Cynara helper credentials to global commons

Change-Id: If60a51afb801e75f300250f2e1244ad7f05b5098

7 years agoMerge branch 'yaca' into tizen 44/88344/1
Zbigniew Jasinski [Fri, 16 Sep 2016 10:06:16 +0000 (12:06 +0200)]
Merge branch 'yaca' into tizen

Change-Id: Ie586cacd427d87daa0f0e972f86c9071a4ccf860
Signed-off-by: Zbigniew Jasinski <z.jasinski@samsung.com>
7 years agoYACA: Remove get sign property tests 92/88092/2
Dariusz Michaluk [Tue, 13 Sep 2016 08:52:46 +0000 (10:52 +0200)]
YACA: Remove get sign property tests

Change-Id: I36a5d3be236d73b0788c6b83384b4afa3e3c8554

7 years agoYACA: Low-level RSA API tests 80/85080/11
Krzysztof Jackiewicz [Tue, 23 Aug 2016 12:52:29 +0000 (14:52 +0200)]
YACA: Low-level RSA API tests

Change-Id: If83467a2cbcf409667336e7c5ec726b1dd11ae0f

7 years agoYACA: Fix typo, samsumg -> samsung 63/88063/2
Dariusz Michaluk [Tue, 13 Sep 2016 06:46:13 +0000 (08:46 +0200)]
YACA: Fix typo, samsumg -> samsung

Change-Id: I3ea3a5806cddf27b45fe879e89bfe3a4f23f687b

7 years agoYACA: Add GCM/CCM output tests 35/87135/5
Dariusz Michaluk [Mon, 5 Sep 2016 15:24:17 +0000 (17:24 +0200)]
YACA: Add GCM/CCM output tests

Change-Id: I0e91408959ec6c0adda63263d2dcb8026c114186

7 years agoSM: Add pkgName and isHybrid params to label generation 95/87595/1
Zofia Abramowska [Thu, 8 Sep 2016 16:07:32 +0000 (18:07 +0200)]
SM: Add pkgName and isHybrid params to label generation

Change-Id: I0a5cbf75a27943ef5eb0ff22665250b91960a701

7 years agoSM: Rename and use one label generators 94/87594/1
Zofia Abramowska [Thu, 8 Sep 2016 15:30:44 +0000 (17:30 +0200)]
SM: Rename and use one label generators

Change-Id: Iee19a490a5da8076c03260c86d58dd13baa60ba7

7 years agoYACA: Add GCM/CCM tag length combination tests 60/84060/9
Mateusz Forc [Tue, 16 Aug 2016 09:56:44 +0000 (11:56 +0200)]
YACA: Add GCM/CCM tag length combination tests

Change-Id: I91d45e95f1e9b6b85bec8977dd2c9b67fcc70fb7

7 years agoYACA: Add GCM/CCM call order tests 84/83884/8
Mateusz Forc [Fri, 12 Aug 2016 10:00:33 +0000 (12:00 +0200)]
YACA: Add GCM/CCM call order tests

Change-Id: Icfde4167a7f674c5cb5605c036ba47233da5c6d1

7 years agoYACA: Remove unnecessary multiplication of test input 73/87373/2
Krzysztof Jackiewicz [Wed, 7 Sep 2016 14:32:31 +0000 (16:32 +0200)]
YACA: Remove unnecessary multiplication of test input

Change-Id: I62ee40707100ff838396d5b94ab265d557d092fc

7 years agoSM: Use TzPlatformConfig for global app dir 62/87562/1
Zofia Abramowska [Thu, 8 Sep 2016 11:10:32 +0000 (13:10 +0200)]
SM: Use TzPlatformConfig for global app dir

Change-Id: I9252080880c12c11ed38bde46dfe7b1dd32268c7

7 years agoAdded '--test=' option 44/86944/5
Zbigniew Jasinski [Mon, 5 Sep 2016 13:59:18 +0000 (15:59 +0200)]
Added '--test=' option

One can run particular test passing it's name as argument:

$ security-manager-tests --test='security_manager_07_user_add_app_install'

Change-Id: Ibfb2ac3f376a2f790d5af084ce42559594a65f1d
Signed-off-by: Zbigniew Jasinski <z.jasinski@samsung.com>
7 years agoYACA: 256 bit RSA has been deemed "too small" in OpenSSL 1.1 66/86966/2
Lukasz Pawelczyk [Mon, 5 Sep 2016 16:53:19 +0000 (18:53 +0200)]
YACA: 256 bit RSA has been deemed "too small" in OpenSSL 1.1

Change-Id: I5675cb454ab718d37171bea1745900fde83eb28e

7 years agoAdapt to changed TZ_SYS_RW_APP: /opt/usr/apps -> /opt/usr/globalapps 71/87171/1
Rafal Krypa [Tue, 6 Sep 2016 15:18:13 +0000 (17:18 +0200)]
Adapt to changed TZ_SYS_RW_APP: /opt/usr/apps -> /opt/usr/globalapps

The path for global applications has been recently changed:
https://review.tizen.org/gerrit/85150

Make security-tests put applications files in proper location.

Change-Id: I6e3304e2f40958f0abf483d216aa12b9351b659a

7 years agoSM: Fix group test 77/86077/2
Zofia Abramowska [Tue, 30 Aug 2016 11:01:12 +0000 (13:01 +0200)]
SM: Fix group test

Change-Id: I0946aa8cc53f6ff6a59f7e5a37b4132d354155ca

7 years agoYACA: Keep key size in KeyPair 27/86127/2
Krzysztof Jackiewicz [Tue, 30 Aug 2016 12:01:03 +0000 (14:01 +0200)]
YACA: Keep key size in KeyPair

Change-Id: Ic84ef69b2140e970c7a1edea5810491d81fc1605

7 years agoYACA: Update padding values 79/85079/3
Krzysztof Jackiewicz [Tue, 23 Aug 2016 12:50:44 +0000 (14:50 +0200)]
YACA: Update padding values

Change-Id: I86651a3a17f93d5a0e18f2f3592b797bd3a30efc

7 years agoSM: Code cleanup - move remaining tests 46/85546/2
Zofia Abramowska [Thu, 25 Aug 2016 16:21:55 +0000 (18:21 +0200)]
SM: Code cleanup - move remaining tests

Change-Id: I95b02ae4f2247c75130b1fc456a50c591c97aa33

7 years agoYACA: Fix T4236 memory leak. 60/85860/2
Dariusz Michaluk [Mon, 29 Aug 2016 09:13:27 +0000 (11:13 +0200)]
YACA: Fix T4236 memory leak.

Change-Id: I47d28182022e8119931978f06e394617a211d049

7 years agoYACA: Add RC2 effective key bits tests. 83/85083/5
Dariusz Michaluk [Tue, 23 Aug 2016 07:32:12 +0000 (09:32 +0200)]
YACA: Add RC2 effective key bits tests.

Change-Id: I6993b88a4784df9f5529ac6c4ea8a571611e4d50

7 years agoYACA: Add seal/open tests. 17/84617/6
Dariusz Michaluk [Fri, 19 Aug 2016 10:52:40 +0000 (12:52 +0200)]
YACA: Add seal/open tests.

Change-Id: Ie3ca9b19fde43bdf619919a05c8dcbf616dde68c

7 years agoYACA: Add simple encrypt/decrypt tests. 23/84423/6
Dariusz Michaluk [Thu, 18 Aug 2016 11:48:13 +0000 (13:48 +0200)]
YACA: Add simple encrypt/decrypt tests.

Change-Id: I361190fd81762cc1ad2ba55f2ee1a5ff79842087

7 years agoYACA: Add key wrapping tests. 65/84265/5
Dariusz Michaluk [Wed, 17 Aug 2016 10:39:31 +0000 (12:39 +0200)]
YACA: Add key wrapping tests.

Change-Id: I2c467b97d72c912a70096e4b91e3409b3a224cd3

7 years agoYACA: adjust to s/INTERNAL_KEYLEN/KEYLEN_COMPONENT/ change in yaca 31/85931/1
Krzysztof Jackiewicz [Mon, 29 Aug 2016 14:28:07 +0000 (16:28 +0200)]
YACA: adjust to s/INTERNAL_KEYLEN/KEYLEN_COMPONENT/ change in yaca

Change-Id: I3e7dba8035064945f257962ede16effff5cf1032

7 years agoSM: Code cleanup - separate public sharing tests 45/85545/1
Zofia Abramowska [Thu, 25 Aug 2016 14:56:48 +0000 (16:56 +0200)]
SM: Code cleanup - separate public sharing tests

Change-Id: Ifd5a6b6bc6e9983f728a3d04f5e0f8f6a2f0e074

7 years agoSM: Code cleanup - separate register paths tests 33/85533/1
Zofia Abramowska [Thu, 25 Aug 2016 14:30:19 +0000 (16:30 +0200)]
SM: Code cleanup - separate register paths tests

Change-Id: I63b833b6a39f285708c207b2607a9e7e2e1c3823

7 years agoSM: Code cleanup - separate dyntransition tests 32/85532/1
Zofia Abramowska [Wed, 24 Aug 2016 14:27:40 +0000 (16:27 +0200)]
SM: Code cleanup - separate dyntransition tests

Change-Id: I99725947deea7b56557a4cde1f9f0da42dcd35da

7 years agoSM: Code cleanup - separate credentials tests 27/85327/1
Zofia Abramowska [Wed, 24 Aug 2016 14:27:40 +0000 (16:27 +0200)]
SM: Code cleanup - separate credentials tests

Change-Id: I08cc91f8becc55d28885cc19647afcce6c56115d

7 years agoSM: Code cleanup - separate trusted sharing tests 13/85313/1
Zofia Abramowska [Wed, 24 Aug 2016 13:10:46 +0000 (15:10 +0200)]
SM: Code cleanup - separate trusted sharing tests

Change-Id: Ieb1ba9f920808aaf89306959e037df46d3997c51

7 years agoSM: Code cleanup - separate private sharing tests 12/85312/1
Zofia Abramowska [Wed, 24 Aug 2016 12:36:21 +0000 (14:36 +0200)]
SM: Code cleanup - separate private sharing tests

Change-Id: Ia212364bce408f433927161c6150a7bc22571cd0

7 years agoSM: Code cleanup - separate privacy manager tests 90/85290/1
Zofia Abramowska [Tue, 23 Aug 2016 14:51:11 +0000 (16:51 +0200)]
SM: Code cleanup - separate privacy manager tests

Change-Id: Ie5767a10b54e08846f1633de095003b50b7806c8

7 years agoSM: Use PasswdAccess instead of pwdnam 89/85289/1
Zofia Abramowska [Tue, 23 Aug 2016 14:22:36 +0000 (16:22 +0200)]
SM: Use PasswdAccess instead of pwdnam

Change-Id: I12db6dc0f48ac63a9d3d99b351ef6dd9b519e06f

7 years agoSM: Code cleanup - separate basic test cases 44/84844/2
Zofia Abramowska [Mon, 22 Aug 2016 13:19:53 +0000 (15:19 +0200)]
SM: Code cleanup - separate basic test cases

Separate some test cases from main file.
Separate common functions/classes/types.

Change-Id: I79cf4e9cd00bcf5a430314f581afa35d2b1004f9

7 years agoSM: Fix wrong placement of test group 08/83908/2
Zofia Abramowska [Fri, 12 Aug 2016 16:37:25 +0000 (18:37 +0200)]
SM: Fix wrong placement of test group

Change-Id: Idb48976dda2585cc30c18cb9fe1de28b7e0a363e

7 years agoTest for API for managing list of permitted labels 39/69339/13
Radoslaw Bartosiak [Thu, 12 May 2016 21:09:41 +0000 (23:09 +0200)]
Test for API for managing list of permitted labels

Four new API functions are tested:
- security_manager_app_labels_monitor_init
- security_manager_app_labels_monitor_finish
- security_manager_app_labels_monitor_get_fd
- security_manager_app_labels_monitor_process

Change-Id: I238ac24820708c00078f0e79f27e3415061a22dd
Signed-off-by: Radoslaw Bartosiak <r.bartosiak@samsung.com>
7 years agoCynara: Redo gdbus helpers tests 62/83362/5
Zofia Abramowska [Wed, 10 Aug 2016 10:11:23 +0000 (12:11 +0200)]
Cynara: Redo gdbus helpers tests

Change-Id: I7317d9921b3498a8cb8ecd32ada9b13b79da5f8e

7 years agoCynara: Redo dbus helpers tests 61/83361/5
Zofia Abramowska [Wed, 10 Aug 2016 10:11:14 +0000 (12:11 +0200)]
Cynara: Redo dbus helpers tests

Change-Id: Ideee7a1714d91b3b29f32957fb36d83cda6038fe

7 years agoMerge remote-tracking branch 'origin/tizen' into yaca 02/84602/1
Zbigniew Jasinski [Fri, 19 Aug 2016 10:56:31 +0000 (12:56 +0200)]
Merge remote-tracking branch 'origin/tizen' into yaca

Change-Id: Ie127f8356cce6938c6c9b9b9ad5c109db4c79117
Signed-off-by: Zbigniew Jasinski <z.jasinski@samsung.com>
7 years agoMerge remote-tracking branch 'origin/tizen' into security-manager 00/84600/1
Zbigniew Jasinski [Fri, 19 Aug 2016 10:48:15 +0000 (12:48 +0200)]
Merge remote-tracking branch 'origin/tizen' into security-manager

Change-Id: I4f10ef0ccc3b82b26c7db6cb5a84d4d6874d976e
Signed-off-by: Zbigniew Jasinski <z.jasinski@samsung.com>
7 years agoMerge remote-tracking branch 'origin/tizen' into cynara 95/84595/1
Zbigniew Jasinski [Fri, 19 Aug 2016 10:37:00 +0000 (12:37 +0200)]
Merge remote-tracking branch 'origin/tizen' into cynara

Change-Id: I27fd4ae639e50120ce21acf26220c8fb2c8a513b
Signed-off-by: Zbigniew Jasinski <z.jasinski@samsung.com>
7 years agoYACA: Add simple encrypt/decrypt invalid param tests. 73/83873/5
Dariusz Michaluk [Fri, 12 Aug 2016 10:26:43 +0000 (12:26 +0200)]
YACA: Add simple encrypt/decrypt invalid param tests.

Change-Id: I1ff53992cf048eeca8ec43dd22f5d4c0bdeeb80d

7 years agoYACA: Add seal/open invalid param tests. 70/83670/5
Dariusz Michaluk [Thu, 11 Aug 2016 14:29:42 +0000 (16:29 +0200)]
YACA: Add seal/open invalid param tests.

Change-Id: I4fdfb2794349c3b9a9c404b8452338be949c7870

7 years agoYACA: Add encrypt-decrypt test 40/81840/23
Mateusz Forc [Thu, 28 Jul 2016 10:58:34 +0000 (12:58 +0200)]
YACA: Add encrypt-decrypt test

Change-Id: I59269302d0aabd22366f4ae1529a9bb2877acc64

7 years agoYACA: Add scripts used to generate encrypt tests 76/81776/31
Mateusz Forc [Thu, 28 Jul 2016 08:54:10 +0000 (10:54 +0200)]
YACA: Add scripts used to generate encrypt tests

Change-Id: I86de3c31e8e03a610590985883c1407a0a32320d

7 years agoYACA: Add *alloc/memcmp/key_destroy tests. 40/83540/4
Dariusz Michaluk [Thu, 11 Aug 2016 11:49:37 +0000 (13:49 +0200)]
YACA: Add *alloc/memcmp/key_destroy tests.

Change-Id: I80d4000f8ae126e8f407b8982356975d61f6443e

7 years agoYACA: Add encrypt output tests 69/81169/26
Mateusz Forc [Tue, 19 Jul 2016 13:31:09 +0000 (15:31 +0200)]
YACA: Add encrypt output tests

Change-Id: I4087b0f3bfd792b2da34fa0ef881fa5519c389b3

7 years agoWAE: API changed due to changed installer cred 72/83972/2
Kyungwook Tak [Tue, 16 Aug 2016 05:26:56 +0000 (14:26 +0900)]
WAE: API changed due to changed installer cred

refer https://review.tizen.org/gerrit/#/c/81601

Change-Id: I77c0a969a65e6aa81c31034fd5dd45d1f8aaf45e
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoAdjusting security-manager tests to run with onlycap 99/83399/3
Tomasz Swierczek [Wed, 10 Aug 2016 08:27:51 +0000 (10:27 +0200)]
Adjusting security-manager tests to run with onlycap

System::Privileged is the only label that has effective
CAP_MAC_ADMIN/CAP_MAC_OVERRIDE. Gumd cannot add/remove
users in online mode.

Change-Id: Iec1810273d3fc6f3a185b7227683202b854dc709

7 years agoYACA: gen DH params with primelen == 512, 1024 takes too long 65/83565/2
Lukasz Pawelczyk [Thu, 11 Aug 2016 15:00:09 +0000 (17:00 +0200)]
YACA: gen DH params with primelen == 512, 1024 takes too long

Change-Id: Ibb122ec330916e2c0081714db578cb234572ec01

7 years agoYACA: yaca_key_derive_dh/_kdf output tests 84/82784/7
Dariusz Michaluk [Fri, 5 Aug 2016 15:11:08 +0000 (17:11 +0200)]
YACA: yaca_key_derive_dh/_kdf output tests

Change-Id: I3902d2bb53b2d49fee05d32cec4a434a457805ac

7 years agoYACA: test EC keys for sign/verify operations 42/83242/4
Lukasz Pawelczyk [Tue, 9 Aug 2016 15:39:38 +0000 (17:39 +0200)]
YACA: test EC keys for sign/verify operations

Change-Id: I1c7b54678b6d5227c396a1879aaa9b85e54719b7

7 years agoYACA: support comments starting with # (regardless of = in the middle) 41/83241/4
Lukasz Pawelczyk [Tue, 9 Aug 2016 15:38:49 +0000 (17:38 +0200)]
YACA: support comments starting with # (regardless of = in the middle)

Change-Id: I1ef080741cb1ab96b6579a09bb190897ec739bd8

7 years agoYACA: invalid param tests for yaca_key_derive_dh/_kdf 52/82752/5
Dariusz Michaluk [Fri, 5 Aug 2016 12:35:01 +0000 (14:35 +0200)]
YACA: invalid param tests for yaca_key_derive_dh/_kdf

Change-Id: I89787aad7caf11403ee2bf6594dd162567bd33d8

7 years agoCynara: Add tests for default socket helper methods 60/83360/3
Zofia Abramowska [Wed, 10 Aug 2016 10:10:56 +0000 (12:10 +0200)]
Cynara: Add tests for default socket helper methods

Change-Id: I733b4805d891f90e6b4bcf5519922089fcce9aea

7 years agoCynara: fix helper common functions 70/83370/1
Zofia Abramowska [Wed, 10 Aug 2016 09:31:14 +0000 (11:31 +0200)]
Cynara: fix helper common functions

Change-Id: Ie8866504e459ff299d408851db7c0b476d108f03

7 years agoCynara : [Temporary] Fix rules for helper tests 15/81215/2
Zofia Abramowska [Fri, 22 Jul 2016 16:49:27 +0000 (18:49 +0200)]
Cynara : [Temporary] Fix rules for helper tests

Temporarily add needed smack rules for proper tests working.

Change-Id: Ib3ebec0f297bb98af25b59efcdaf604666a45e11

7 years agoAccess provider : Add setting rules for subject 14/81214/2
Zofia Abramowska [Fri, 22 Jul 2016 16:48:56 +0000 (18:48 +0200)]
Access provider : Add setting rules for subject

Change-Id: I2d7c9672227e427a19d009dddd8454163ec35262

7 years agoYACA: Use local test-vectors when available 11/82611/3
Lukasz Pawelczyk [Thu, 4 Aug 2016 11:15:50 +0000 (13:15 +0200)]
YACA: Use local test-vectors when available

Copy test-vectors to the local build dir and use them instead if
available. This makes possible to run the tests without "make install"
directly in the cmake build directory.

Change-Id: I4041cf669960e4b199aa14adfb8c17a9c991be2c

7 years agoYACA: Add param combination tests for yaca_encrypt/decrypt_initialize() 16/80116/27
Mateusz Forc [Wed, 13 Jul 2016 13:38:29 +0000 (15:38 +0200)]
YACA: Add param combination tests for yaca_encrypt/decrypt_initialize()

Change-Id: I34e8cee773801550f25330592c2baaee40c51b34

7 years agoYACA: import/export tests for EC, DH and parameters 56/81356/3
Lukasz Pawelczyk [Mon, 25 Jul 2016 14:19:35 +0000 (16:19 +0200)]
YACA: import/export tests for EC, DH and parameters

Change-Id: Ie645a41accbbbd521ddb4fcd9337a93279ac0982

7 years agoYACA: tests for importing DSA and EC from X509 certs 46/81346/3
Lukasz Pawelczyk [Mon, 25 Jul 2016 13:40:56 +0000 (15:40 +0200)]
YACA: tests for importing DSA and EC from X509 certs

Change-Id: Ic2846be18af9861b0eb346ff52d757ec69763610

7 years agoYACA: add new key types to tests' infrastructure 45/81345/3
Lukasz Pawelczyk [Mon, 25 Jul 2016 13:34:52 +0000 (15:34 +0200)]
YACA: add new key types to tests' infrastructure

Change-Id: Iaba1057f1322ce7a15aa6454a4836bee361de6f6

7 years agoYACA: key generation tests for EC, DH and also related to parameters 28/81328/3
Lukasz Pawelczyk [Mon, 25 Jul 2016 12:40:54 +0000 (14:40 +0200)]
YACA: key generation tests for EC, DH and also related to parameters

Change-Id: If09542527ce793c87380cc74e8f2d9c6d89a6404

7 years agoYACA: invalid param tests for latest key functionalities 90/81190/4
Lukasz Pawelczyk [Fri, 22 Jul 2016 13:39:14 +0000 (15:39 +0200)]
YACA: invalid param tests for latest key functionalities

- EC keys
- DH keys
- generation of parameters
- generation of keys from parameters
- extraction of parameters
- extraction of public (this already existed, but had no tests)

Change-Id: Ifb26eeea43923426750ed269bfe92183b5854a7d

7 years agoYACA: Add more invalid param tests 34/81934/4
Mateusz Forc [Fri, 29 Jul 2016 09:32:01 +0000 (11:32 +0200)]
YACA: Add more invalid param tests

Change-Id: I5af29cf843aeee16e6692bca7b768004a9eab01d

7 years agoYACA: Change container type in test-vector and change deleted enums 07/80507/10
Mateusz Forc [Mon, 18 Jul 2016 10:41:23 +0000 (12:41 +0200)]
YACA: Change container type in test-vector and change deleted enums

Change-Id: I78d8018cbf6ef6cd17f8744763901e257763b3fd

7 years agoYACA: another workaround for a possible bug in clang 84/80284/1
Lukasz Pawelczyk [Fri, 15 Jul 2016 13:41:55 +0000 (15:41 +0200)]
YACA: another workaround for a possible bug in clang

Change-Id: I05e4e97bb9d599c3021863d8e0e2e65b1f1dc877

7 years agoYACA: remove semicolon from macros' end 15/80115/1
Mateusz Forc [Thu, 14 Jul 2016 11:18:05 +0000 (13:18 +0200)]
YACA: remove semicolon from macros' end

Change-Id: I64c5db35a91c6c703a3a233dc0b104268318afd5

7 years agoYACA: Add invalid param tests for encrypt/decrypt functions 57/78857/32
Mateusz Forc [Tue, 5 Jul 2016 16:20:16 +0000 (18:20 +0200)]
YACA: Add invalid param tests for encrypt/decrypt functions

Change-Id: I4081eb9ee3586ace34887d62bf1f5e672901b273

7 years agoYACA: set_property tests (invalid param and proper operation) 88/78488/5
Lukasz Pawelczyk [Tue, 5 Jul 2016 17:03:54 +0000 (19:03 +0200)]
YACA: set_property tests (invalid param and proper operation)

Change-Id: I408f3f831370ca272601d5eeea632cfc1c4c01c7

7 years agoYACA: Update yaca_cleanup() usage 35/78935/1
Krzysztof Jackiewicz [Thu, 7 Jul 2016 11:00:01 +0000 (13:00 +0200)]
YACA: Update yaca_cleanup() usage

Change-Id: I7017e61b08d130dc045675f0e24c09e1e56c338f

7 years agoYACA: sign_verify with different paddings vector test 68/78468/2
Lukasz Pawelczyk [Tue, 5 Jul 2016 13:58:21 +0000 (15:58 +0200)]
YACA: sign_verify with different paddings vector test

Change-Id: Icd421be5ce8210e2932cebe927e97d3555290663

7 years agoYACA: padding2str helper function 67/78467/2
Lukasz Pawelczyk [Tue, 5 Jul 2016 13:58:07 +0000 (15:58 +0200)]
YACA: padding2str helper function

Change-Id: Icc5f8e4eb198ee11e76453ed751531bac09bbab8

7 years agoYACA: add PBKDF2 vector tests 27/78427/2
Lukasz Pawelczyk [Tue, 5 Jul 2016 11:09:36 +0000 (13:09 +0200)]
YACA: add PBKDF2 vector tests

Change-Id: Ie4a7754c8ac4dc8c574ebc66a3e42eeef8a7236e

7 years agoYACA: key_derive_pbkdf2 helper function 26/78426/2
Lukasz Pawelczyk [Tue, 5 Jul 2016 11:39:05 +0000 (13:39 +0200)]
YACA: key_derive_pbkdf2 helper function

Change-Id: I1f5b40a0b2f59ad8a99567501e7d80196880945e

7 years agoYACA: add PBKDF2 invalid param tests 25/78425/2
Lukasz Pawelczyk [Tue, 5 Jul 2016 11:09:18 +0000 (13:09 +0200)]
YACA: add PBKDF2 invalid param tests

Change-Id: I8feed6eacc53c5e24e0788621196af724cc18487

7 years agoYACA: test for importing public key from an X509 certificate 53/77953/5
Lukasz Pawelczyk [Fri, 1 Jul 2016 17:18:14 +0000 (19:18 +0200)]
YACA: test for importing public key from an X509 certificate

Change-Id: I7294bedf71426a7faf9e38703e6768954e6e6c1d

7 years agoYACA: key import/export vector tests 52/77952/6
Lukasz Pawelczyk [Thu, 30 Jun 2016 10:35:36 +0000 (12:35 +0200)]
YACA: key import/export vector tests

Also some additional invalid params tests that were originally missing.

Change-Id: I21cc16a8809ebfd2c29feaf8c3a1101655fd6723

7 years agoYACA: tests updated for int->void change in de-allocators 34/78234/2
Lukasz Pawelczyk [Mon, 4 Jul 2016 16:25:35 +0000 (18:25 +0200)]
YACA: tests updated for int->void change in de-allocators

Change-Id: Ie4eeae2788ebe69fd7b9f7366518b9f986592acd