| 8b0894f5 | 09-Sep-2015 |
James Kung <james.kung@linaro.org> |
Secure Storage: Support extending file size and file hole
With this patch, user can extend file size by truncate operation.
Also the file hole feature is supported in this patch, that is, user can
Secure Storage: Support extending file size and file hole
With this patch, user can extend file size by truncate operation.
Also the file hole feature is supported in this patch, that is, user can seek to a position larger than file size and write data from the position.
The file hole implementation actually is not an efficient solution, because we always fill zero in these holes.
Signed-off-by: James Kung <james.kung@linaro.org> Tested-by: James Kung <james.kung@linaro.org> (QEMU, MT8173 EVB) Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (QEMU platform) Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey) Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
show more ...
|
| 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 ...
|
| 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 ...
|
| 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 ...
|
| 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 ...
|
| 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 ...
|
| 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 ...
|
| 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> |
| 60fc60b3 | 22-Jul-2015 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: optimize size with const crypto_ops
Optimize size of unpaged data by making crypto_ops const.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand
core: optimize size with const crypto_ops
Optimize size of unpaged data by making crypto_ops const.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| bf494894 | 02-Jul-2015 |
Pascal Brand <pascal.brand@st.com> |
ECC: DH implementation and self tests
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Jerome Forissier <jerome.forissie
ECC: DH implementation and self tests
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey 32 & 64-bit) Tested-by: Pascal Brand <pascal.brand@linaro.org> (QEMU) Signed-off-by: Pascal Brand <pascal.brand@st.com>
show more ...
|
| 1d8052f0 | 02-Jul-2015 |
SY Chiu <sy.chiu@linaro.org> |
SE API: Use tee_svc_copy_kaddr_to_user32() to avoid buffer overflow
Note: buffer overflow is supposed to happen when we have 64-bit kernel and 32-bit TA, but SE API can only be tested on QEMU which
SE API: Use tee_svc_copy_kaddr_to_user32() to avoid buffer overflow
Note: buffer overflow is supposed to happen when we have 64-bit kernel and 32-bit TA, but SE API can only be tested on QEMU which cannot hosts 64-bit kernel for now. Thus, the test is just make sure the change doesn't corrupt SE API implementation.
Signed-off-by: SY Chiu <sy.chiu@linaro.org> Tested-by: SY Chiu <sy.chiu@linaro.org> (QEMU+jcardsim) Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 9977404e | 25-Jun-2015 |
Pascal Brand <pascal.brand@st.com> |
ECC: sign and self tests, at crypto_ops level
Note that in case of pager, the emulated esram size has been increased from 200KB to 256KB.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Rev
ECC: sign and self tests, at crypto_ops level
Note that in case of pager, the emulated esram size has been increased from 200KB to 256KB.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey 32 & 64-bit) Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey with pager) Tested-by: Pascal Brand <pascal.brand@linaro.org> (QEMU platform) Signed-off-by: Pascal Brand <pascal.brand@st.com>
show more ...
|
| 8707ec0f | 29-Jun-2015 |
Jerome Forissier <jerome.forissier@linaro.org> |
arm64: fix buffer overflows when copying kernel addresses to user space
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by:
arm64: fix buffer overflows when copying kernel addresses to user space
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
show more ...
|
| 316a94e7 | 18-Jun-2015 |
Pascal Brand <pascal.brand@st.com> |
ECC: gen_ecc_key HAL
Implementation and test of crypto_ops.acipher.gen_ecc_key
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: P
ECC: gen_ecc_key HAL
Implementation and test of crypto_ops.acipher.gen_ecc_key
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) Signed-off-by: Pascal Brand <pascal.brand@st.com>
show more ...
|
| aeb0d927 | 05-Jun-2015 |
Cedric Chaumont <cedric.chaumont@st.com> |
GP Internal Core API v1.1 : Transient Object Functions
Signed-off-by: Cedric Chaumont <cedric.chaumont@st.com> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jens Wiklander <jens.w
GP Internal Core API v1.1 : Transient Object Functions
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 ...
|
| 84431ae3 | 22-Apr-2015 |
Cedric Chaumont <cedric.chaumont@st.com> |
GP Internal Core API v1.1 : TEE_CreatePersistentObject
Deprecated TEE_DATA_FLAG_EXCLUSIVE Replaced by TEE__DATA_FLAG_OVERWRITE
Signed-off-by: Cedric Chaumont <cedric.chaumont@st.com> Reviewed-by: J
GP Internal Core API v1.1 : TEE_CreatePersistentObject
Deprecated TEE_DATA_FLAG_EXCLUSIVE Replaced by TEE__DATA_FLAG_OVERWRITE
Signed-off-by: Cedric Chaumont <cedric.chaumont@st.com> Reviewed-by: Jens Wiklander <jens.wiklander@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 ...
|
| a8224611 | 16-Mar-2015 |
James Kung <james.kung@linaro.org> |
Enhancing Secure Storage
- Implement encrypted file system key manager * Key generation for SSK, FEK * Provide helper APIs to do file encryption/decryption * Finished key manager test cases fo
Enhancing Secure Storage
- Implement encrypted file system key manager * Key generation for SSK, FEK * Provide helper APIs to do file encryption/decryption * Finished key manager test cases for file encryption/decryption tests
- Implements encrypted file system operations file-based operation * file content is encrypted and MACed before storing on normal world file system. * file hole is not implemented because this is meaningless in the context of secure storage.
Signed-off-by: SY Chiu <sy.chiu@linaro.org> Signed-off-by: James Kung <james.kung@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Tested-by: SY Chiu <sy.chiu@linaro.org> (QEMU) Tested-by: James Kung <james.kung@linaro.org> (QEMU) Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform)
show more ...
|
| c999e231 | 18-May-2015 |
Jens Wiklander <jens.wiklander@linaro.org> |
Move SMALL_PAGE_* defines to core_mmu.h
Moves SMALL_PAGE_* to core_mmu.h and removes core/arch/arm/include/mm/tee_mm_def.h
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pas
Move SMALL_PAGE_* defines to core_mmu.h
Moves SMALL_PAGE_* to core_mmu.h and removes core/arch/arm/include/mm/tee_mm_def.h
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| 55093bf4 | 18-May-2015 |
Jens Wiklander <jens.wiklander@linaro.org> |
Remove RTT0 and RTT1 support
Removes the support for RTT0 and RTT1 as we don't have a port to any hardware with RTT0 and RTT1.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by:
Remove RTT0 and RTT1 support
Removes the support for RTT0 and RTT1 as we don't have a port to any hardware with RTT0 and RTT1.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| d7df0762 | 20-May-2015 |
Jerome Forissier <jerome.forissier@linaro.org> |
Clean/simplify supplicant RPC parameters
Tested on HiKey with 32-bit and 64-bit TEE Core.
Note: this commit depends on: https://github.com/OP-TEE/optee_client/pull/32 https://github.com/OP-TEE/op
Clean/simplify supplicant RPC parameters
Tested on HiKey with 32-bit and 64-bit TEE Core.
Note: this commit depends on: https://github.com/OP-TEE/optee_client/pull/32 https://github.com/OP-TEE/optee_linuxdriver/pull/22
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 ...
|
| 6ef34537 | 08-May-2015 |
SY Chiu <sy.chiu@linaro.org> |
Generic console initialization code
Signed-off-by: SY Chiu <sy.chiu@linaro.org> Tested-by: SY Chiu <sy.chiu@linaro.org> (MT8173 EVB) Reviewed-by: Pascal Brand <pascal.brand@linaro.org> |
| 44bd24c5 | 08-Apr-2015 |
James Kung <james.kung@linaro.org> |
Mediatek mt8173 platform support
Add support for Mediatek mt8173 platform with 32bit and 64bit OP-TEE OS. Due to Mediatek ATF firmware limitation, this commit only tested with 64bit OP-TEE OS.
Sign
Mediatek mt8173 platform support
Add support for Mediatek mt8173 platform with 32bit and 64bit OP-TEE OS. Due to Mediatek ATF firmware limitation, this commit only tested with 64bit OP-TEE OS.
Signed-off-by: James Kung <james.kung@linaro.org> Signed-off-by: SY Chiu <sy.chiu@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey) Tested-by: James Kung <james.kung@linaro.org> (MT8173 EVB) Tested-by: SY Chiu <sy.chiu@linaro.org> (MT8173 EVB)
NOTE: To test this on MT8173 EVB, you need to update firmware please refer to https://github.com/m943040028/evb-utils
show more ...
|