platform/core/test/security-tests.git
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

8 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>
8 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

8 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

8 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>
8 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>
8 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>
8 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

8 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

8 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

8 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

8 years agoMerge branch 'tizen' into ckm 86/84186/1
Kyungwook Tak [Wed, 17 Aug 2016 07:43:20 +0000 (16:43 +0900)]
Merge branch 'tizen' into ckm

Change-Id: I247283c4040f55113b1bc6f7375c7e693dc11506
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 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

8 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

8 years agoCKM: Add TC for new API (ckmc_alias_new) 59/81859/3
Kyungwook Tak [Tue, 16 Aug 2016 05:05:16 +0000 (14:05 +0900)]
CKM: Add TC for new API (ckmc_alias_new)

Change-Id: I349f1e0741a0e3711bc4523305e43d211ccefe4e
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 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>
8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 years agoSeparate ckm-test by the need of capability 71/82171/4
Kyungwook Tak [Mon, 1 Aug 2016 09:02:09 +0000 (18:02 +0900)]
Separate ckm-test by the need of capability

Some of ckm-tests needs capability(cap_mac_admin) to test data shared
test and system database test.
To run in normal environment except those special tests, test program is
divided into two.

tests with capability:
(should be run in sdb root on)
    # ckm-tests-on-onlycap.sh <dpl-test options>

tests without capability(normal cases):
(should be run in admin user(owner) whose uid is 5001)
    $ ckm-tests <dpl-test options>

Change-Id: Ice693b90f06368f4b0037b43a8249b19932e8c35
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 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

8 years agoRun key-manager test on onlycap 67/81467/3
Kyungwook Tak [Tue, 26 Jul 2016 07:28:04 +0000 (16:28 +0900)]
Run key-manager test on onlycap

Notice: This commit is temporary quick fix for only-cap.
        Test cases should be separated to normal cases and
        smack label of self change needed cases for testing
        unprivileged(without any of capability) client.

- Change smack label to System::Privileged
- Reduce key-manager test app lables
- Add ckm test script for running on onlycap (ckm-tests-on-onlycap.sh).
  Usage is same to ordinary ckm-tests because it propagates all params
  and forwards them to ckm-tests

Change-Id: I3babb11d010eff13c35042107af215b3932f4f2e
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoAdd gitignore file 66/81466/1
Kyungwook Tak [Tue, 26 Jul 2016 07:26:02 +0000 (16:26 +0900)]
Add gitignore file

Change-Id: I8592eac4f0ef80f87a70093c97bab25149c47873
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 years agoAdd SM tests for app installation constraints 67/65167/6
Krzysztof Jackiewicz [Thu, 7 Apr 2016 14:01:27 +0000 (16:01 +0200)]
Add SM tests for app installation constraints

[Problem] Application installation constraints need to be checked.
[Solution] Add test.

[Verification] Run security-manager-tests --regexp=security_manager_50_app_install_constraint_check

Change-Id: I0d00995dac7edf5c0b45e3365bdb77b92470dad1

8 years agosecurity-manager: don't check app privileges in security-manager.db 14/77814/1
Rafal Krypa [Fri, 1 Jul 2016 07:32:43 +0000 (09:32 +0200)]
security-manager: don't check app privileges in security-manager.db

Security-manager changes to not store application privilege information
in it's own database. The only backend for this information will now
be Cynara.
Adapt tests to not expect privilege information in security-manager
database.

Change-Id: I821ed24cc3dc0e3e69e30ade84bd4f7a5ec42527
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
8 years agoYACA: key_format and key_file_format handlers for vector 51/77951/1
Lukasz Pawelczyk [Thu, 30 Jun 2016 09:59:28 +0000 (11:59 +0200)]
YACA: key_format and key_file_format handlers for vector

Change-Id: I550ed4e91a155520fb2e62ee00d4e2efb2f1cf1d

8 years agoYACA: add DATA_MISMATCH testing for verification vector tests 37/77437/4
Lukasz Pawelczyk [Wed, 29 Jun 2016 15:50:03 +0000 (17:50 +0200)]
YACA: add DATA_MISMATCH testing for verification vector tests

Change-Id: I75f89e874f9357f5415e2d863dde1ea0badf2e73

8 years agoYACA: simple sign/verify/hmac/cmac vector tests 85/77385/6
Lukasz Pawelczyk [Wed, 29 Jun 2016 12:45:26 +0000 (14:45 +0200)]
YACA: simple sign/verify/hmac/cmac vector tests

Change-Id: Ia8a3ca01f86dddf8ac32e62327019f839acfb171

8 years agoCynara: Add tests for cynara self helpers 27/77427/2
Zofia Abramowska [Wed, 29 Jun 2016 12:01:03 +0000 (14:01 +0200)]
Cynara: Add tests for cynara self helpers

Change-Id: I0c21a38f64b2a348f4c5a7dc6d1f5c27a0aae306

8 years agoYACA: invalid param tests for simple sign/verify/hmac/cmac 64/77364/2
Lukasz Pawelczyk [Wed, 29 Jun 2016 11:45:55 +0000 (13:45 +0200)]
YACA: invalid param tests for simple sign/verify/hmac/cmac

Change-Id: I56f80163daac1126a9031ea7258473b0c54073f8

8 years agoYACA: simple_sign() helper function 63/77363/2
Lukasz Pawelczyk [Wed, 29 Jun 2016 11:45:14 +0000 (13:45 +0200)]
YACA: simple_sign() helper function

Fixed some style while here

Change-Id: I51c9a399fa76e77e9dbd6aa6ade6138203eba2e0

8 years agoYACA: HMAC and CMAC invalid param tests 15/77315/3
Lukasz Pawelczyk [Wed, 29 Jun 2016 10:25:31 +0000 (12:25 +0200)]
YACA: HMAC and CMAC invalid param tests

Change-Id: Ie6f2ec887ec6cdf9165f63641a5c7839562d6f37

8 years agoAdd tests for cynara-creds-gdbus 31/38531/10
Jacek Bukarewicz [Thu, 9 Apr 2015 09:45:14 +0000 (11:45 +0200)]
Add tests for cynara-creds-gdbus

Change-Id: I60b759f81845cb4fa6765de00a90a305358dc211
Signed-off-by: Radoslaw Bartosiak <r.bartosiak@samsung.com>
Signed-off-by: Lukasz Kostyra <l.kostyra@samsung.com>
8 years agoYACA: HMAC and CMAC vector tests
Lukasz Pawelczyk [Tue, 28 Jun 2016 16:20:32 +0000 (18:20 +0200)]
YACA: HMAC and CMAC vector tests

Change-Id: I0d72539de1792e056a16ff4f29d86ea785836672

8 years agoYACA: Helper functions for CMAC tests
Lukasz Pawelczyk [Tue, 28 Jun 2016 16:20:03 +0000 (18:20 +0200)]
YACA: Helper functions for CMAC tests

Change-Id: I2f149eb032fe118c6acc5e3be8463aec593843cc

8 years agoYACA: Drop the digest context reuse testing
Lukasz Pawelczyk [Tue, 28 Jun 2016 14:33:06 +0000 (16:33 +0200)]
YACA: Drop the digest context reuse testing

Change-Id: I541fbc84a033270d0b30d22870f886846467b4be

8 years agoChanged socket label comparison in tests 57/76057/2
Tomasz Swierczek [Wed, 22 Jun 2016 12:37:18 +0000 (14:37 +0200)]
Changed socket label comparison in tests

Setting up application security context no longer changes opened socket labels.

Change-Id: I060351dca6781dd12cf8c76a760eb4e71ff2fe33

8 years agoAdd tests for cynara-creds-dbus 38/30438/17
Aleksander Zdyb [Wed, 11 Mar 2015 11:02:01 +0000 (12:02 +0100)]
Add tests for cynara-creds-dbus

Change-Id: Iea7f5e9290899302cd4b2c992110895591ae8903
Signed-off-by: Radoslaw Bartosiak <r.bartosiak@samsung.com>
Signed-off-by: Lukasz Kostyra <l.kostyra@samsung.com>
8 years agoYACA: yaca sign/verify vector tests 91/76091/2
Lukasz Pawelczyk [Wed, 22 Jun 2016 11:51:15 +0000 (13:51 +0200)]
YACA: yaca sign/verify vector tests

Change-Id: Ib062a4f77e493604da5d894d4b856cba7cb47027

8 years agoYACA: yaca sign vector tests 90/76090/2
Lukasz Pawelczyk [Wed, 22 Jun 2016 14:25:26 +0000 (16:25 +0200)]
YACA: yaca sign vector tests

Change-Id: Ib4485dc497108a0f00c6c8dcf91fcbb09b843af0

8 years agoYACA: keytype2str helper function 89/76089/2
Lukasz Pawelczyk [Wed, 22 Jun 2016 14:17:43 +0000 (16:17 +0200)]
YACA: keytype2str helper function

Make it more generic with ENUM_DESCRIBE

Change-Id: I27ecd5832c1fc2d43dd82bf4399262d9745947f9

8 years agoYACA: add key_type handling in the test vector API 87/76087/2
Lukasz Pawelczyk [Wed, 22 Jun 2016 11:50:27 +0000 (13:50 +0200)]
YACA: add key_type handling in the test vector API

Change-Id: I2aa8b6de1ac9cd3d9d3a4e29620abd01ac434a90

8 years agoYACA: Use Buffer instead of vector<char> 70/76270/7
Krzysztof Jackiewicz [Thu, 23 Jun 2016 08:14:41 +0000 (10:14 +0200)]
YACA: Use Buffer instead of vector<char>

Change-Id: Ibc3b3b63ba250176b5168fa665ea8bc8482a9864

8 years agoYACA: Use get_output_length() where possible 66/76266/7
Krzysztof Jackiewicz [Thu, 23 Jun 2016 08:08:01 +0000 (10:08 +0200)]
YACA: Use get_output_length() where possible

Change-Id: I484b8cad6ed57968c167e85a2ab03448e8b8cc30

8 years agoYACA: Tests for digest simple API 23/75823/8
Krzysztof Jackiewicz [Tue, 21 Jun 2016 13:55:34 +0000 (15:55 +0200)]
YACA: Tests for digest simple API

Change-Id: I83936cc9458dedc9c9c8626e441f5b0e18e94291

8 years agoYACA: Test digest context reuse 18/75618/9
Krzysztof Jackiewicz [Mon, 20 Jun 2016 15:59:48 +0000 (17:59 +0200)]
YACA: Test digest context reuse

Change-Id: I563d7ca6d16169876fac8a2a636dfa58f2747238

8 years agoYACA: Binary input message digest tests 17/75617/9
Krzysztof Jackiewicz [Mon, 20 Jun 2016 15:44:27 +0000 (17:44 +0200)]
YACA: Binary input message digest tests

Change-Id: I588fe4fbe707e3b7477272eb9f629e55694660bd

8 years agoYACA: Digest ASCII test vectors 16/75616/9
Krzysztof Jackiewicz [Mon, 20 Jun 2016 14:28:54 +0000 (16:28 +0200)]
YACA: Digest ASCII test vectors

Change-Id: Id07a3b696f2295f39a42bf497f6aba050b0470ce

8 years agoYACA: Fix: replace BufPtr with ChrPtr 16/76316/1
Krzysztof Jackiewicz [Thu, 23 Jun 2016 10:32:57 +0000 (12:32 +0200)]
YACA: Fix: replace BufPtr with ChrPtr

Change-Id: I009691d114910b6758a3f24132cdbc3245f7fa2d

8 years agoYACA: Crypto tests 86/75786/3
Krzysztof Jackiewicz [Tue, 21 Jun 2016 10:30:18 +0000 (12:30 +0200)]
YACA: Crypto tests

Change-Id: I8974001c316fca85cb3ab4cc485c70d82e5bc859

8 years agoYACA: Test vector helpers 08/75608/6
Krzysztof Jackiewicz [Mon, 20 Jun 2016 10:50:44 +0000 (12:50 +0200)]
YACA: Test vector helpers

Change-Id: I09bb1c03a8ae960f1f788b9a8dca8c1331f5f07f

8 years agoYACA: Key import/export invalid param tests 90/75590/5
Lukasz Pawelczyk [Mon, 20 Jun 2016 13:26:11 +0000 (15:26 +0200)]
YACA: Key import/export invalid param tests

Change-Id: Ib633c376518d9a79376a0f7017d3f0cb929a9be1

8 years agoYACA: Simple key import/export wrappers for auto types 89/75589/4
Lukasz Pawelczyk [Mon, 20 Jun 2016 13:25:28 +0000 (15:25 +0200)]
YACA: Simple key import/export wrappers for auto types

Change-Id: I4364d24c5b10bc195803918aeec198e117cb2788

8 years agoSM: remove app paths before uninstall 83/65183/3
Zofia Abramowska [Thu, 7 Apr 2016 15:58:51 +0000 (17:58 +0200)]
SM: remove app paths before uninstall

Change-Id: Iaa994be25d48cdf51d745f5803ff7779d7fad057

8 years agoSM: Make app names unique in sharing tests 82/65182/3
Zofia Abramowska [Thu, 7 Apr 2016 15:08:05 +0000 (17:08 +0200)]
SM: Make app names unique in sharing tests

Change-Id: I5e2cc18d63993ef1bd6449faa238fe00ca8c0460

8 years agoSM: Refactor and add few new private sharing tests 64/61664/4
Zofia Abramowska [Wed, 9 Mar 2016 11:39:11 +0000 (12:39 +0100)]
SM: Refactor and add few new private sharing tests

Change-Id: Ia89252bbf39739427ee2e96437c2109802728765

8 years agoSM: Add const to proper AppInstallHelper methods 43/66743/2
Zofia Abramowska [Wed, 20 Apr 2016 14:47:47 +0000 (16:47 +0200)]
SM: Add const to proper AppInstallHelper methods

Change-Id: Ia10c03b99381c9babd0d0eaa82b5aefa5644d9c0

8 years agoSM: AppInstallHelper add pkg name setting 63/61663/4
Zofia Abramowska [Wed, 9 Mar 2016 11:38:58 +0000 (12:38 +0100)]
SM: AppInstallHelper add pkg name setting

Change-Id: I7feba7a77b75e227a0d42c9d7a8d5766979be00e

8 years agoSM: Add simple private sharing uninstall tests 62/61662/4
Zofia Abramowska [Mon, 29 Feb 2016 15:16:11 +0000 (16:16 +0100)]
SM: Add simple private sharing uninstall tests

Change-Id: If2c3be38090ceca9ffbd91b19f0d91bbf3765a22