platform/core/security/trusted/key-manager-ta.git
5 years agoDisable clang specific warning ; provide path to stddef.h for compilation sandbox/nmerinov/llvm
Nikolai Merinov [Wed, 13 Feb 2019 10:45:52 +0000 (13:45 +0300)]
Disable clang specific warning ; provide path to stddef.h for compilation

5 years agoAdd checking of return value from KM_CreateKey in KM_ExecCmdSaveData 68/192968/1 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181114.074507 accepted/tizen/unified/20181114.074440 submit/tizen/20181113.131604 submit/tizen_5.0/20181113.131841
Tomasz Swierczek [Tue, 13 Nov 2018 08:46:38 +0000 (09:46 +0100)]
Add checking of return value from KM_CreateKey in KM_ExecCmdSaveData

Change-Id: I1c822bb6dc1f75d9919deb7b1e18a9b38b7443cd

5 years agoMove optee config header to devkit conf dir 07/192007/3 accepted/tizen/unified/20181107.082219 submit/tizen/20181106.152527
Igor Kotrasinski [Fri, 26 Oct 2018 12:03:42 +0000 (14:03 +0200)]
Move optee config header to devkit conf dir

Change-Id: I6c6ec24387b75443b8e33f9ea2e107b871107aca
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
5 years agoUse new semantics for devkit TA configuration 06/192006/2
Igor Kotrasinski [Fri, 26 Oct 2018 10:15:37 +0000 (12:15 +0200)]
Use new semantics for devkit TA configuration

The devkit now accepts a base directory to all backend-specific
configurations.

Change-Id: Ib8068d70651607f3a1d8600e290a8934262a4f8b
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
5 years agoCompilation fixes for OpTEE. 56/191356/4
r.tyminski [Tue, 16 Oct 2018 07:47:13 +0000 (09:47 +0200)]
Compilation fixes for OpTEE.

Change-Id: Ia33a87899975e1793efefa2d1778aaba8c2f9fa0

5 years agoCopy data to secure memory. 50/191350/6
r.tyminski [Tue, 16 Oct 2018 07:19:02 +0000 (09:19 +0200)]
Copy data to secure memory.

In solutions that shared memory is separated from normal world,
we need to copy data to secure world in TA.

Change-Id: I1634769c94d7023f4d2ec3e61e8f072f9b8eb977

6 years agoRemove unused licenses in spec file 93/188893/2
Dongsun Lee [Tue, 11 Sep 2018 10:25:45 +0000 (19:25 +0900)]
Remove unused licenses in spec file

Change-Id: If7993493879d8ce30ef4377f54adbb05c489cac6
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
6 years agoFix base64 encoding function 88/190888/4
Krzysztof Jackiewicz [Mon, 8 Oct 2018 08:59:31 +0000 (10:59 +0200)]
Fix base64 encoding function

Bitwise OR of unsigned int and a signed char is machine dependent and
could lead to invalid base64 encoding.

This commit makes it use unsigned char instead.

Change-Id: I8cf918158bca6783494b09aaa73fd710fb41f164

6 years agoRemove unused code 70/190670/4
Bartlomiej Grzelewski [Tue, 2 Oct 2018 13:20:57 +0000 (15:20 +0200)]
Remove unused code

Change-Id: Ied2d1e0987bdf964c1c1b128fbe07e8eac18ab8b

6 years agoSupport for initial values decryption 16/190416/7
Bartlomiej Grzelewski [Mon, 1 Oct 2018 17:07:15 +0000 (19:07 +0200)]
Support for initial values decryption

Change-Id: I5b5086a7db69e7677eda93ade1dd2500255a3f20

6 years agoReduce number of import methods 88/189988/7
Bartlomiej Grzelewski [Tue, 25 Sep 2018 12:11:38 +0000 (14:11 +0200)]
Reduce number of import methods

Change-Id: Ifa869fb2c5688e348cd7dda5da1d7629c06b67b3

6 years agoEnable release mode for TA manifest 54/189954/3
Tomasz Swierczek [Mon, 24 Sep 2018 15:15:06 +0000 (17:15 +0200)]
Enable release mode for TA manifest

It is needed to properly use tef-simulator outside real SDK

Change-Id: Ie869630f29e609fe6ea8e7792d1f6128fd2bcb30

6 years agoAdd data storage operations 76/188976/22
Tomasz Swierczek [Thu, 13 Sep 2018 12:05:23 +0000 (14:05 +0200)]
Add data storage operations

Change-Id: Ieb0363d19d2b6f53783fce517a37e1b63d7759f3

6 years agoAdded doxygen documentation 55/183655/4 accepted/tizen/5.0/unified/20181102.020656 accepted/tizen/unified/20180918.062921 submit/tizen/20180917.075450 submit/tizen_5.0/20181101.000004
r.tyminski [Mon, 9 Jul 2018 12:57:44 +0000 (14:57 +0200)]
Added doxygen documentation

Documentation for key manager ta defines/structures/enums.
Documentation for data serialization.

Change-Id: Ie71cc0a926858dcf0b0b481caa3b3082fed5626a

6 years agoUse unified-ta-devkit package to build TA 99/176499/3
r.tyminski [Thu, 19 Apr 2018 15:22:40 +0000 (17:22 +0200)]
Use unified-ta-devkit package to build TA

Change-Id: I91c77e1ad5dc4f53d39f0728c598db47744599c9

6 years agopackaging: Disable asan build for %{arm}, aarch64 15/176115/1 accepted/tizen_4.0_unified tizen_4.0 accepted/tizen/4.0/unified/20180417.174703 accepted/tizen/unified/20180419.134302 submit/tizen/20180417.095346 submit/tizen_4.0/20180417.095652
Dongkyun Son [Mon, 16 Apr 2018 23:57:21 +0000 (08:57 +0900)]
packaging: Disable asan build for %{arm}, aarch64

Change-Id: I8eecb92b2a4863b656d9a4bf407dc1c0c4f0b61e
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
6 years agopackaging: Disable building with ASan extra packs only for %{arm} arch. 78/175578/3
Dongkyun Son [Tue, 10 Apr 2018 15:49:45 +0000 (00:49 +0900)]
packaging: Disable building with ASan extra packs only for %{arm} arch.

Change-Id: Idd6a9a2a66d2ca79e20c39c99b7c9cd2ec8d65e5

6 years agoMerge "Restart key-manager after TA installation" into tizen
Rafa? Tymi?ski [Fri, 9 Mar 2018 10:57:10 +0000 (10:57 +0000)]
Merge "Restart key-manager after TA installation" into tizen

6 years agoMerge "Properly install manifest files" into tizen
Rafa? Tymi?ski [Fri, 9 Mar 2018 10:57:01 +0000 (10:57 +0000)]
Merge "Properly install manifest files" into tizen

6 years agoMerge "Free leaking TEE_OperationHandle" into tizen
Rafa? Tymi?ski [Fri, 9 Mar 2018 10:56:50 +0000 (10:56 +0000)]
Merge "Free leaking TEE_OperationHandle" into tizen

6 years agoMerge "Use bytes instead of bits in TEE_InitRefAttribute" into tizen
Rafa? Tymi?ski [Fri, 9 Mar 2018 10:56:37 +0000 (10:56 +0000)]
Merge "Use bytes instead of bits in TEE_InitRefAttribute" into tizen

6 years agoDisable building repository with ASan extra packs 98/171898/1 accepted/tizen/unified/20180309.202938 submit/tizen/20180308.045851
Dongsun Lee [Thu, 8 Mar 2018 04:53:29 +0000 (13:53 +0900)]
Disable building repository with ASan extra packs

Change-Id: I72de104dcb239a449c388d1f5cac6226d4e4df08
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
6 years agoSVACE: Fix accidential case statement fall throughs 06/170506/1 accepted/tizen/4.0/unified/20180222.080119 accepted/tizen/unified/20180222.080223 submit/tizen/20180221.122756 submit/tizen_4.0/20180221.122932
Lukasz Kostyra [Tue, 20 Feb 2018 09:35:30 +0000 (10:35 +0100)]
SVACE: Fix accidential case statement fall throughs

Change-Id: Ie266437477eacc6c146bc9b57703692fb32db5e5

6 years agoRestart key-manager after TA installation 71/170271/1
Krzysztof Jackiewicz [Fri, 16 Feb 2018 13:07:47 +0000 (14:07 +0100)]
Restart key-manager after TA installation

Key-manager may keep the session to the previous TA. Restart it so that it
opens the session to the new one.

Change-Id: Id6a6de73fb3a1e23b555d8345f34806f009b0beb

6 years agoProperly install manifest files 70/170270/1
Krzysztof Jackiewicz [Fri, 16 Feb 2018 12:58:34 +0000 (13:58 +0100)]
Properly install manifest files

Change-Id: Ib081fe61cb0f138726f84b702bcf08fbc0bca4ec

6 years agoFree leaking TEE_OperationHandle 58/170258/2
Krzysztof Jackiewicz [Fri, 16 Feb 2018 09:15:39 +0000 (10:15 +0100)]
Free leaking TEE_OperationHandle

Change-Id: I75e4f51056c69fc4d74bdedf473d00b486050a5e

6 years agoUse bytes instead of bits in TEE_InitRefAttribute 55/170255/2
Krzysztof Jackiewicz [Thu, 15 Feb 2018 15:28:14 +0000 (16:28 +0100)]
Use bytes instead of bits in TEE_InitRefAttribute

According to TEE Internal Core API spec TEE_InitRefAttribute expects a buffer
length, so bytes instead of bits.

Change-Id: Ie5348a357b83cb727ffbfff9e5be633c5b8b1da9

6 years agoRemove unused WIP key verification code 07/161607/2 accepted/tizen/unified/20171205.155618 submit/tizen/20171205.074343
Igor Kotrasinski [Fri, 24 Nov 2017 09:37:35 +0000 (10:37 +0100)]
Remove unused WIP key verification code

This code is a non-functional WIP that is not used by key-manager. If
needed, we can restore it in the future.

Change-Id: I0e7d1840f7a6695dfb1342915c18a3262d1a71df
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
6 years agoTypo fixes in copypasted NULL comparisons 06/161606/2
Igor Kotrasinski [Thu, 23 Nov 2017 13:09:38 +0000 (14:09 +0100)]
Typo fixes in copypasted NULL comparisons

Change-Id: I5765575cf903400b6fbabcfb9b2c2eea49145dac
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
6 years agoFix license issues 96/161496/3
Krzysztof Jackiewicz [Thu, 23 Nov 2017 15:31:57 +0000 (16:31 +0100)]
Fix license issues

- Add license file
- Update License tag in spec
- Add missing license boilerplate
- Install the license file with rpms
- Change license headerĀ of user_ta_header_defines.h. The name contains only
  definitions requreed by Optee OS and as such it should not be considered a
  derivative work.

Change-Id: I0da62c022f83aca5b7bc13dd7ff863353d784c3e

6 years agoEnable OpTee build 64/161464/2 accepted/tizen/4.0/unified/20171124.063711 accepted/tizen/unified/20171124.064651 submit/tizen/20171123.135637 submit/tizen_4.0/20171123.135719 tizen_4.0.IoT.p2_release
Lukasz Kostyra [Thu, 23 Nov 2017 09:04:19 +0000 (10:04 +0100)]
Enable OpTee build

Change-Id: I1d5da59e911824674ee98e4d589b689962043ead

6 years agoRewrite symmetric crypto code to support key encryption 15/161315/1
Lukasz Kostyra [Wed, 15 Nov 2017 11:04:12 +0000 (12:04 +0100)]
Rewrite symmetric crypto code to support key encryption

Change-Id: I0bc9b507e146192f9ae2c75332227cafa9502c49

6 years agoSupport importing keys 53/160153/1
Lukasz Kostyra [Tue, 14 Nov 2017 14:44:34 +0000 (15:44 +0100)]
Support importing keys

Change-Id: If7509f02b32351c32dda9e58d5af3dc108b8cfae

6 years agoImplement PKCS7 and zero padding 28/149928/6
Lukasz Kostyra [Mon, 4 Sep 2017 13:13:01 +0000 (15:13 +0200)]
Implement PKCS7 and zero padding

PKCS7 padding is used in symmetric cipher operations, as GP API does not
support it natively.

Zero padding is used with PBKDF2 to allow passwords having less than 10
bytes.

Some minor bugs were also squashed to make the code fully working.

Change-Id: Ibec339af3e1adf2ff69d08a83baf07429ef567c3

6 years agoImplement PBKDF2 key derivation routine 27/149927/3
Lukasz Kostyra [Wed, 16 Aug 2017 12:05:23 +0000 (14:05 +0200)]
Implement PBKDF2 key derivation routine

Change-Id: I40882cda3a59eb12b04416859b027c8b4cda302a

6 years agoImplement digest and asymmetric operations 35/141235/3
Lukasz Kostyra [Fri, 28 Jul 2017 13:40:23 +0000 (15:40 +0200)]
Implement digest and asymmetric operations

Change-Id: Iaee5d63bea67887665f5c171230c73c89cf010a3

6 years agoAdjust TA to work with TEF Simulator 28/141128/4
Lukasz Kostyra [Thu, 20 Jul 2017 08:12:15 +0000 (10:12 +0200)]
Adjust TA to work with TEF Simulator

Change-Id: I52abe06fd92dac5c6c390ec1906cc7aab2b941e6

6 years agoFinish symmetric encryption, add missing AES CFB mode 27/141127/5
Lukasz Kostyra [Thu, 29 Jun 2017 12:10:52 +0000 (14:10 +0200)]
Finish symmetric encryption, add missing AES CFB mode

Because this is supposed to be a TA-only repo, the old
test CA code was removed, along with some deprecated
modules from early development stages.

Change-Id: I7414f1aa7254b78d9be4148ee324a9e74d400f3c

6 years agolog: printf in one call, add extra info 26/141126/4
Lukasz Kostyra [Tue, 6 Jun 2017 09:40:02 +0000 (11:40 +0200)]
log: printf in one call, add extra info

Change-Id: I1653832d0f408efbdfa6db628eba20ce10ec26b2

6 years agoAdjustments to KM TA, further implementation WIP 25/141125/3
Lukasz Kostyra [Wed, 31 May 2017 15:12:17 +0000 (17:12 +0200)]
Adjustments to KM TA, further implementation WIP

Change-Id: Ib68bb63c97080602d3fe9a232e4f6caa7d983d91

7 years agoAdding packaging that use optee-os-ta-devel toolkit 24/141124/2
r.tyminski [Tue, 27 Jun 2017 12:34:13 +0000 (14:34 +0200)]
Adding packaging that use optee-os-ta-devel toolkit

Change-Id: I4b52a284c27065e2166fb7a1f014e4ea2180fb2c

7 years agoInitial source code commit 22/141122/2
r.tyminski [Wed, 10 May 2017 13:19:58 +0000 (15:19 +0200)]
Initial source code commit

Change-Id: I22841985f12e09d22fbabcf4870ab17c8cc7434b

7 years agoInitial empty repository master
Tizen Infrastructure [Mon, 3 Apr 2017 07:02:36 +0000 (00:02 -0700)]
Initial empty repository