| 9470783f | 09-Sep-2015 |
SY Chiu <sy.chiu@linaro.org> |
Secure Storage: export TEE file header structure for xtest
Export 'struct meta_header' and 'struct block_header' to $TA_DEV_KIT_DIR/host_include, those structures can be used by xtest. This prevents
Secure Storage: export TEE file header structure for xtest
Export 'struct meta_header' and 'struct block_header' to $TA_DEV_KIT_DIR/host_include, those structures can be used by xtest. This prevents hard-coding the structure in xtest.
Signed-off-by: SY Chiu <sy.chiu@linaro.org> Tested-by: SY Chiu <sy.chiu@linaro.org> (QEMU) Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| 9ea20add | 09-Sep-2015 |
SY Chiu <sy.chiu@linaro.org> |
Secure Storage: fix data abort issue
- Tmpfile is NULL before checking whether file exists, if this check failed we will unlink(tmpfile). This caused data abort.
- Minor fixes in tee_fs_common.c
Secure Storage: fix data abort issue
- Tmpfile is NULL before checking whether file exists, if this check failed we will unlink(tmpfile). This caused data abort.
- Minor fixes in tee_fs_common.c for consistent naming and error checking.
Signed-off-by: SY Chiu <sy.chiu@linaro.org> Tested-by: SY Chiu <sy.chiu@linaro.org> (QEMU) Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
show more ...
|
| fcb0c8c1 | 01-Sep-2015 |
Jerome Forissier <jerome.forissier@linaro.org> |
Travis: run xtest in QEMU
.travis.yml is updated to run functional tests in QEMU after the multi-platform builds. This involves:
- Cloning Git repositories using the Android 'repo' script (the mani
Travis: run xtest in QEMU
.travis.yml is updated to run functional tests in QEMU after the multi-platform builds. This involves:
- Cloning Git repositories using the Android 'repo' script (the manifest is at https://github.com/OP-TEE/manifest) - Building a bootable image containing Linux, OP-TEE and xtest, then booting the image in QEMU and running the test suite ("make check")
Travis will report success only if all tests pass.
Some required tools are downloaded and compiled during the before_install step: bc, Tcl and Expect. Indeed, they are not available in the Travis container-based infrastructure, which we have to use to enable ccache. Since apt-get is not allowed in that environment, we have to build from sources. This is usually quite fast (less than a minute) thanks to ccache.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| 07a169c5 | 03-Sep-2015 |
Cedric Chaumont <cedric.chaumont@st.com> |
GP11 : DSA-SHA224 and DSA-SHA256 algo
Signed-off-by: Cedric Chaumont <cedric.chaumont@st.com> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.o
GP11 : DSA-SHA224 and DSA-SHA256 algo
Signed-off-by: Cedric Chaumont <cedric.chaumont@st.com> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Cedric Chaumont <cedric.chaumont@linaro.org> (STM boards) Tested-by: Cedric Chaumont <cedric.chaumont@linaro.org> (ARM Juno board)
show more ...
|
| bc420748 | 05-May-2015 |
Jens Wiklander <jens.wiklander@linaro.org> |
TA as ELF + signature
Changes format of TA to use the ELF format instead. This patch also adds signature checking of the TA. The format of the TA is: <Signed header> <ELF header> <Program header> (p
TA as ELF + signature
Changes format of TA to use the ELF format instead. This patch also adds signature checking of the TA. The format of the TA is: <Signed header> <ELF header> <Program header> (part of ELF spec, pointing out segments to load) <Sections>
A struct ta_head is placed in the first section of the first segment to carry flags and other properties of the TA.
elf32.h, elf64.h and elf_common.h are imported from FreeBSD.
In addition to the R_ARM_RELATIVE relocation type, adds support for R_ARM_ABS32 relocations. Since a symbol table is needed to process this relocation type a separate program header is added in the TA ELF containing the sections .dynamic, .dynsym, .dynstr and .hash. These sections are only needed during relocation and could be released once the TA is relocated.
A default signing key has been generated with openssl genrsa -out key.pem and added as keys/default_ta.pem
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU, FVP) Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform) Tested-by: Pascal Brand <pascal.brand@linaro.org> (QEMU platform) Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey)
show more ...
|
| fee0078c | 08-Sep-2015 |
Jerome Forissier <jerome.forissier@linaro.org> |
Update debug.md
plat_tee_entry() does not exist anymore since commit 82f61471f57d ("Move common TEE entry code into core/arch/arm/tee/entry.c"). Update the debugging instructions accordingly.
Signe
Update debug.md
plat_tee_entry() does not exist anymore since commit 82f61471f57d ("Move common TEE entry code into core/arch/arm/tee/entry.c"). Update the debugging instructions accordingly.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 3f4b5250 | 26-Aug-2015 |
Pascal Brand <pascal.brand@st.com> |
libtomcrypt: sync ccm code
https://github.com/libtom/libtomcrypt/issues/73 highlighted NIST specifications are not met in previous implementation. Here is the description of this issue: Accordin
libtomcrypt: sync ccm code
https://github.com/libtom/libtomcrypt/issues/73 highlighted NIST specifications are not met in previous implementation. Here is the description of this issue: According to the NIST specification of CCM, the authentication tag is part of the ciphertext. In order to decrypt, this full ciphertext must be decrypted, resulting in a "plaintext" tag. The tag must then be recomputed upon the plaintext and compared with the decrypted value. However, upon decryption in the libtom implementation, the ciphertext is decrypted, and a tag is computed upon the header and (decrypted) plaintext. This is then re-encrypted, so that the caller of the function must compare the resulting (encryped) tag with the received (encrypted) tag.
The NIST specification specifies that "only the error message INVALID is returned" when the decryption-verification fails. In that case "the payload P and the MAC T shall not be revealed" and that "the implementation shall ensure that an unauthorized party cannot distinguish whether the error message results from [invalid message format] or from [authentication failure], for example, from the timing of the error message."
Current patch: - sync CCM libtomcrypt code with the ones in optee_os - NIST specifications are now met. Note that ccm_memory() API has been modified. - check of non-null pointers - remove spurious space - remove compilation of ccm_memory which is not used in optee_os
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (QEMU platform) Signed-off-by: Pascal Brand <pascal.brand@st.com>
show more ...
|
| 9b5060cd | 07-Sep-2015 |
Harinarayan Bhatta <harinarayan.bhatta@linaro.org> |
Add TI dra7xx platform support
Added plat-ti, with initial support for TI dra7xx platform.
Changed generic init_sec_mon to be overriden by platform/main.c because initial return to non-secure world
Add TI dra7xx platform support
Added plat-ti, with initial support for TI dra7xx platform.
Changed generic init_sec_mon to be overriden by platform/main.c because initial return to non-secure world needs to restore full NS context for this platform.
Signed-off-by: Harinarayan Bhatta <harinarayan.bhatta@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
show more ...
|
| c7856574 | 05-Jun-2015 |
James Kung <james.kung@linaro.org> |
Secure Storage: Implement block-based encrypted file system
- Meta file encryption/decryption is enforced - Block file encryption/decryption is optional
Signed-off-by: James Kung <james.kung@linaro
Secure Storage: Implement block-based encrypted file system
- Meta file encryption/decryption is enforced - Block file encryption/decryption is optional
Signed-off-by: James Kung <james.kung@linaro.org> Signed-off-by: SY Chiu <sy.chiu@linaro.org> Tested-by: James Kung <james.kung@linaro.org> (QEMU, MT8173 EVB) Tested-by: SY Chiu <sy.chiu@linaro.org> (QEMU) Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
show more ...
|
| f4c0a293 | 23-Jun-2015 |
SY Chiu <sy.chiu@linaro.org> |
Secure Storage: Implemented atomic operations
The following operations should be atomic:
- Write - Rename - Create/Delete - Truncate
Signed-off-by: SY Chiu <sy.chiu@linaro.org> Tested-by: SY Chiu
Secure Storage: Implemented atomic operations
The following operations should be atomic:
- Write - Rename - Create/Delete - Truncate
Signed-off-by: SY Chiu <sy.chiu@linaro.org> Tested-by: SY Chiu <sy.chiu@linaro.org> (QEMU) Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
show more ...
|
| 69d4445d | 05-Jun-2015 |
SY Chiu <sy.chiu@linaro.org> |
Secure Storage: Implemented block-based file operations
This patch represent a TEE file by many small REE files and single meta file, which is used to describe the TEE file. This approach can be use
Secure Storage: Implemented block-based file operations
This patch represent a TEE file by many small REE files and single meta file, which is used to describe the TEE file. This approach can be used as basis to support atomic operation and enhance encrypt fs performance.
Signed-off-by: SY Chiu <sy.chiu@linaro.org> Tested-by: SY Chiu <sy.chiu@linaro.org> (QEMU) Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
show more ...
|
| e852b51a | 04-Sep-2015 |
Paul Swan <Paul.Swan@microsoft.com> |
core: correct TA virtual address mapping calculation
Correct the TA virtual address mapping calculation to properly support TA's more than 1Mb in size.
Reviewed-by: Jens Wiklander <jens.wiklander@l
core: correct TA virtual address mapping calculation
Correct the TA virtual address mapping calculation to properly support TA's more than 1Mb in size.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU platform)
Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform)
Signed-off-by: Paul Swan <paswan@microsoft.com>
show more ...
|
| 8f2a2337 | 21-Aug-2015 |
Jerome Forissier <jerome.forissier@linaro.org> |
Delete setup scripts for FVP, MTK, QEMU and update documentation
It is recommended to use the new repo-based build system instead of the older build scripts. Therefore, this commit deletes the scrip
Delete setup scripts for FVP, MTK, QEMU and update documentation
It is recommended to use the new repo-based build system instead of the older build scripts. Therefore, this commit deletes the scripts for FVP, Mediatek and QEMU platforms and updates the documentation accordingly.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| f7cad1ad | 27-Aug-2015 |
Pascal Brand <pascal.brand@st.com> |
Remove core_serviceid.h file
This file contains many legacy defines, which are not used anymore. The only used services are linked to l2cc configuration. These services are now replaced by dedicated
Remove core_serviceid.h file
This file contains many legacy defines, which are not used anymore. The only used services are linked to l2cc configuration. These services are now replaced by dedicated functions tee_get_l2cc_mutex(), tee_set_l2cc_mutex(), tee_enable_l2cc_mutex() and tee_disable_l2cc_mutex()
Signed-off-by: Pascal Brand <pascal.brand@st.com> Reviewed-by: Etienne CARRIERE <etienne.carriere@st.com> Reviewed-by: Jean-Michel DELORME <jean-michel.delorme@st.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (QEMU platform)
show more ...
|
| 68677ce9 | 27-Aug-2015 |
Pascal Brand <pascal.brand@st.com> |
Update types in some functions
- tee_mmu_user_pa2va_helper(): padd_t instead of void * - tee_mmu_check_access_rights(): const context - check tee_time_get_sys_time() succeeded
Reviewed-by: Jens Wik
Update types in some functions
- tee_mmu_user_pa2va_helper(): padd_t instead of void * - tee_mmu_check_access_rights(): const context - check tee_time_get_sys_time() succeeded
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (QEMU) Signed-off-by: Pascal Brand <pascal.brand@st.com>
show more ...
|
| 5147b2ab | 07-Jul-2015 |
Jean-Michel Delorme <jean-michel.delorme@st.com> |
Removing the malloc to handle the temporary copy
Removing the malloc to handle the temporary copy of the params in the tee_dispatch_open_session() function. They are now allocated in the stack to be
Removing the malloc to handle the temporary copy
Removing the malloc to handle the temporary copy of the params in the tee_dispatch_open_session() function. They are now allocated in the stack to be coherent with the tee_dispatch_invoke_command case.
Signed-off-by: Jean-Michel Delorme <jean-michel.delorme@st.com> Reviewed-by: Pascal BRAND <pascal.brand@st.com> Reviewed-by: Etienne CARRIERE <etienne.carriere@st.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| decd2b4d | 30-Apr-2015 |
Pascal Brand <pascal.brand@st.com> |
No output in case of failing OpenSession
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@lin
No output in case of failing OpenSession
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (QEMU platform) Signed-off-by: Pascal Brand <pascal.brand@st.com>
show more ...
|
| 55bb99a0 | 30-Apr-2015 |
Pascal Brand <pascal.brand@st.com> |
Remove unused struct tee_core_status_out
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@lin
Remove unused struct tee_core_status_out
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Pascal Brand <pascal.brand@st.com>
show more ...
|
| ae13a3f5 | 26-Jul-2015 |
duxiaoqiang <xiaoqiang.du@linaro.org> |
arm32: Keep CPSR.E bit value
Fix the problem which CPSR's status bit may be overwritten when resume from normal world. This problem was caused by function init_regs which called by thread scheduler.
arm32: Keep CPSR.E bit value
Fix the problem which CPSR's status bit may be overwritten when resume from normal world. This problem was caused by function init_regs which called by thread scheduler.
Change-Id: I04cea2f107df25fbeab7c33f54e6557ecf9d5033 Signed-off-by: duxiaoqiang <xiaoqiang.du@linaro.org>
show more ...
|
| 78239609 | 25-Aug-2015 |
Pascal Brand <pascal.brand@st.com> |
Fix leaking information from mem_neq
This fix comes from https://github.com/libtom/libtomcrypt/issues/74 mem_neq is a constant time comparison function, but it leaks information on the secre
Fix leaking information from mem_neq
This fix comes from https://github.com/libtom/libtomcrypt/issues/74 mem_neq is a constant time comparison function, but it leaks information on the secret data that is being compared in the value that is returned.
Signed-off-by: Pascal Brand <pascal.brand@st.com> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (QEMU)
show more ...
|
| 642a1607 | 24-Jul-2015 |
Cedric Chaumont <cedric.chaumont@st.com> |
GP11 : operation state handling
Change-Id: I136443ef2f137b2e12902324d724fff7ce7c590e Signed-off-by: Cedric Chaumont <cedric.chaumont@st.com> Reviewed-by: Jerome Forisssier <jerome.forissier@linaro.o
GP11 : operation state handling
Change-Id: I136443ef2f137b2e12902324d724fff7ce7c590e Signed-off-by: Cedric Chaumont <cedric.chaumont@st.com> Reviewed-by: Jerome Forisssier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Tested-by: Cedric Chaumont <cedric.chaumont@linaro.org> (STM boards) Tested-by: Cedric Chaumont <cedric.chaumont@linaro.org> (ARM Juno board)
show more ...
|
| 325a2155 | 16-Jun-2015 |
Pascal Brand <pascal.brand@st.com> |
Remove useless src alignment check in TEE_UpdateXXX
Tested-by: Pascal BRAND <pascal.brand@st.com> Reviewed-by: Jean-Michel DELORME <jean-michel.delorme@st.com> Reviewed-by: Etienne CARRIERE <etienne
Remove useless src alignment check in TEE_UpdateXXX
Tested-by: Pascal BRAND <pascal.brand@st.com> Reviewed-by: Jean-Michel DELORME <jean-michel.delorme@st.com> Reviewed-by: Etienne CARRIERE <etienne.carriere@st.com> Signed-off-by: Pascal Brand <pascal.brand@st.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform)
show more ...
|
| 096cbcdd | 07-Jul-2015 |
Jean-Michel Delorme <jean-michel.delorme@st.com> |
Align Session handle for generic ta interface entry
TEE session handle is now used by all tee_dispatch_xx function. uint32_t type ID parameter has be removed for the tee_dispatch_close_session() fun
Align Session handle for generic ta interface entry
TEE session handle is now used by all tee_dispatch_xx function. uint32_t type ID parameter has be removed for the tee_dispatch_close_session() function.
Signed-off-by: Jean-Michel Delorme <jean-michel.delorme@st.com> Reviewed-by: Pascal BRAND <pascal.brand@st.com> Reviewed-by: Etienne CARRIERE <etienne.carriere@st.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform)
show more ...
|
| 39b7ffb6 | 07-Aug-2015 |
Jerome Forissier <jerome.forissier@linaro.org> |
arm: Fix SHA-1 with cryptographic extensions
Commit 23900b599a98 ("arm: update SHA-1 32-bit CE implementation to process multiple blocks") has introduced a regression on 32-bit platforms when CFG_CR
arm: Fix SHA-1 with cryptographic extensions
Commit 23900b599a98 ("arm: update SHA-1 32-bit CE implementation to process multiple blocks") has introduced a regression on 32-bit platforms when CFG_CRYPTO_SHA1_ARM32_CE=y. Test case: xtest 4006.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| 69fc4acf | 05-Aug-2015 |
Pascal Brand <pascal.brand@st.com> |
Remove unused macro set/get ta_trace_level
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Pascal Brand <pascal.brand@st.com> |