| 73d6c3ba | 27-Oct-2014 |
Joakim Bech <joakim.bech@linaro.org> |
Digest operations now supports NULL arguments
Hash algorithms should support NULL arguments and zero length strings. Following changes will make is possible to call TEE_DigestUpdate and TEE_DigestDo
Digest operations now supports NULL arguments
Hash algorithms should support NULL arguments and zero length strings. Following changes will make is possible to call TEE_DigestUpdate and TEE_DigestDoFinal interchangeably.
Following combinations are now working. ---------------------------------------- | TEE_DigestUpdate | TEE_DigestDoFinal | ---------------------------------------- | NULL | NULL | | NULL | MESSAGE | | MESSAGE | NULL | | MESSAGE | MESSAGE | | N/A | NULL | | N/A | MESSAGE | ----------------------------------------
Signed-off-by: Joakim Bech <joakim.bech@linaro.org> Tested-by: Joakim Bech <joakim.bech@linaro.org> (FVP) Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform)
show more ...
|
| 9e9234fc | 21-Oct-2014 |
Thierry BINIGUER <thierry.biniguer@st.com> |
Fix to finalize mac compute when there is not a last message chunk.
Code implemented in TAs may need to call TEE_MACComputeFinal, without last message chunk.
Reviewed-by: Jens Wiklander <jens.wikla
Fix to finalize mac compute when there is not a last message chunk.
Code implemented in TAs may need to call TEE_MACComputeFinal, without last message chunk.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform) Tested-by: Thierry BINIGUER <thierry.biniguer@st.com> Reviewed-by: Pascal BRAND <pascal.brand@st.com> Tested-by: Etienne CARRIERE <etienne.carriere@st.com> Reviewed-by: Etienne CARRIERE <etienne.carriere@st.com> Signed-off-by: Pascal Brand <pascal.brand@st.com>
show more ...
|
| 106d8aa6 | 23-Oct-2014 |
Pascal Brand <pascal.brand@st.com> |
core: generic buffer inside/outside/intersect routine
Remove multiple implementation of "is buffer inside a buffer" and friends and rely on a generic core_is_buffer_inside/outside/intersect().
Revi
core: generic buffer inside/outside/intersect routine
Remove multiple implementation of "is buffer inside a buffer" and friends and rely on a generic core_is_buffer_inside/outside/intersect().
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) Signed-off-by: Pascal Brand <pascal.brand@st.com>
show more ...
|
| 54e04708 | 23-Oct-2014 |
Pascal Brand <pascal.brand@st.com> |
Move tee_misc in generic part
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> |
| b7fc217f | 23-Oct-2014 |
Pascal Brand <pascal.brand@st.com> |
Cleanup
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> |
| 13b18192 | 02-Oct-2014 |
Jens Wiklander <jens.wiklander@linaro.org> |
mpa_desc.c: convert from DOS to UNIX format
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.br
mpa_desc.c: convert from DOS to UNIX format
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| b9e3eace | 23-Oct-2014 |
Jens Wiklander <jens.wiklander@linaro.org> |
plat-vexpress: set libtomcrypt_with_optimize_size
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pas
plat-vexpress: set libtomcrypt_with_optimize_size
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| 64cbf7ca | 01-Oct-2014 |
Jens Wiklander <jens.wiklander@linaro.org> |
Minimize LTC with some flags
Sets LTC_NO_TEST for globally.
Lets platform decide with libtomcrypt_with_optimize_size if LTC_SMALL_CODE and LTC_NO_FAST should be set.
Signed-off-by: Jens Wiklander
Minimize LTC with some flags
Sets LTC_NO_TEST for globally.
Lets platform decide with libtomcrypt_with_optimize_size if LTC_SMALL_CODE and LTC_NO_FAST should be set.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| c0e35566 | 08-Oct-2014 |
Jerome Forissier <jerome.forissier@linaro.org> |
Add dhex_dump() and DHEXDUMP() to format and print data in hexadecimal
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-
Add dhex_dump() and DHEXDUMP() to format and print data in hexadecimal
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform)
show more ...
|
| 452eae19 | 21-Oct-2014 |
Pascal Brand <pascal.brand@st.com> |
Fix wrong parameter in GCM authentication
Signed-off-by: Pascal Brand <pascal.brand@st.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.o
Fix wrong parameter in GCM authentication
Signed-off-by: Pascal Brand <pascal.brand@st.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform)
show more ...
|
| 00d6ec64 | 21-Oct-2014 |
Jens Wiklander <jens.wiklander@linaro.org> |
plat-vexpress: Set CPSR.A when initializing
Sets CPSR.A when initializing a core. The bit should already be set by the OP-TEE Dispatcher in ARM Trusted Firmware but in case it isn't make sure the bi
plat-vexpress: Set CPSR.A when initializing
Sets CPSR.A when initializing a core. The bit should already be set by the OP-TEE Dispatcher in ARM Trusted Firmware but in case it isn't make sure the bit is set.
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform) Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (FVP platform)
show more ...
|
| c3b4bb3a | 21-Oct-2014 |
Jens Wiklander <jens.wiklander@linaro.org> |
Update relevant "msr {s,c}prs, reg" instructions
Updates relevant "msr {s,c}prs, reg" instructions to "msr {s,c}prs_fsxc, reg" to avoid loosing bits when setting SPSR/CPSR.
Reviewed-by: Joakim Bech
Update relevant "msr {s,c}prs, reg" instructions
Updates relevant "msr {s,c}prs, reg" instructions to "msr {s,c}prs_fsxc, reg" to avoid loosing bits when setting SPSR/CPSR.
Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| 19ef261a | 09-Oct-2014 |
Jens Wiklander <jens.wiklander@linaro.org> |
Remove unused chip_services.c
Removes chip_services.c and declaration of enable_secure_wd() in chip_services.h
Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Tested-by: Pascal Brand <pascal.br
Remove unused chip_services.c
Removes chip_services.c and declaration of enable_secure_wd() in chip_services.h
Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| c507e4c2 | 09-Oct-2014 |
Jens Wiklander <jens.wiklander@linaro.org> |
Remove unused function tee_pobj_init
Reviewed-by: Pascal Brand <pascal.brand@linaro.org> |
| 221cd5d1 | 02-Oct-2014 |
Jens Wiklander <jens.wiklander@linaro.org> |
Rename .bss.prebss.* sections to .nozi.*
Renames .bss.prebss.* sections to .nozi.* to be clear that it's not a "subsection" of .bss and also make the matching in the link script easier.
plat-vexpre
Rename .bss.prebss.* sections to .nozi.*
Renames .bss.prebss.* sections to .nozi.* to be clear that it's not a "subsection" of .bss and also make the matching in the link script easier.
plat-vexpress: * The .nozi section is moved after the .bss section * The padding added before .nozi by the linker is recorded to make it possible to do something useful with the otherwise wasted memory
Reviewed-by: Etienne Carriere <etienne.carriere@st.com> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform) Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (FVP platform)
show more ...
|
| 55d0a3cf | 30-Sep-2014 |
Jens Wiklander <jens.wiklander@linaro.org> |
Remove some assembly files
Removes kta_table_unpg_asm.S, Remove tee_pager_unpg_asm.S Removes tee_mmu_unpg_asm.S * Replaces assembly implementation of tee_mmu_switch() with a C version * Replaces c
Remove some assembly files
Removes kta_table_unpg_asm.S, Remove tee_pager_unpg_asm.S Removes tee_mmu_unpg_asm.S * Replaces assembly implementation of tee_mmu_switch() with a C version * Replaces calls to tee_mmu_invtlb_asid with secure_mmu_unifiedtlbinv_byasid
Reviewed-by: Etienne Carriere <etienne.carriere@st.com> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| 6a0b9008 | 29-Sep-2014 |
Jens Wiklander <jens.wiklander@linaro.org> |
Optimize mmu handling
Previously there was two complete L1 mmu tables where one was only used when kernel mapping was active and the other when user mapping was active too. In addition to that there
Optimize mmu handling
Previously there was two complete L1 mmu tables where one was only used when kernel mapping was active and the other when user mapping was active too. In addition to that there was several sets of L2 mmu tables which where unused.
Now there's only one complete L1 mmu table shared by all CPUs. There's one small L1 mmu table for each thread used to keep user mappings. The small L1 mmu tables takes each 128 bytes and can spans 32 MiB of virtual memory.
This change saves memory ~32 KiB, but also prepares for multiprocessing since each thread has its own user mapping.
Due to the change of mmu table handling many low level assembly and C functions are changed, and some even removed.
Reviewed-by: Etienne Carriere <etienne.carriere@st.com> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| cb077f5c | 01-Oct-2014 |
Jens Wiklander <jens.wiklander@linaro.org> |
thread: check cpsr after fast handler
Asserts that a fast handler hasn't cleared the I, F or A bits in CPSR.
Reviewed-by: Etienne Carriere <etienne.carriere@st.com> Reviewed-by: Pascal Brand <pasca
thread: check cpsr after fast handler
Asserts that a fast handler hasn't cleared the I, F or A bits in CPSR.
Reviewed-by: Etienne Carriere <etienne.carriere@st.com> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| 6d3e61e0 | 18-Sep-2014 |
Jens Wiklander <jens.wiklander@linaro.org> |
plat-vexpress: add qemu_virt flavor
Reviewed-by: Etienne Carriere <etienne.carriere@st.com> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> |
| 03c42787 | 15-Oct-2014 |
Pascal Brand <pascal.brand@st.com> |
CCM Authentication optimization
CCM is now optimized. Instead of being computed twice, libtomcrypt code has been optimized so that classical ccm_init, ccm_process,... can be used incrementally (wh
CCM Authentication optimization
CCM is now optimized. Instead of being computed twice, libtomcrypt code has been optimized so that classical ccm_init, ccm_process,... can be used incrementally (when the whole stream is not available when starting the authentication). CCM way of proceeding is now very closed to GCM authentication.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| e8b55cb2 | 08-Oct-2014 |
etienne carriere <etienne.carriere@st.com> |
various minor cleanups
- Remove unused assembly routines "secure_mmu_xxx". - arm32/plat-stm: . move platform stm definitions of CFG_TEE_xxx configs from conf.mk to system_config.in . emit er
various minor cleanups
- Remove unused assembly routines "secure_mmu_xxx". - arm32/plat-stm: . move platform stm definitions of CFG_TEE_xxx configs from conf.mk to system_config.in . emit error in case some configuration variables are not defined .Remove deprecated macro _USE_SLAPORT_LIB - Comment message format
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| e46048ea | 15-Oct-2014 |
Jerome Forissier <jerome.forissier@linaro.org> |
plat-vexpress: build with -mfloat-abi=soft
OP-TEE on plat-vexpress does not support Neon. This patch prevents generating Neon instructions when the cross-compiler is configured to use '-mfloat-abi=h
plat-vexpress: build with -mfloat-abi=soft
OP-TEE on plat-vexpress does not support Neon. This patch prevents generating Neon instructions when the cross-compiler is configured to use '-mfloat-abi=hard' by default (such as arm-linux-gnueabihf-gcc).
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 ...
|
| 636eedfe | 13-Oct-2014 |
Pascal Brand <pascal.brand@st.com> |
Time initialization performed in init_teecore()
Time initialization was performed in specific platform initialization main_init_helper() function. It is now performed in the generic arm32 initializa
Time initialization performed in init_teecore()
Time initialization was performed in specific platform initialization main_init_helper() function. It is now performed in the generic arm32 initialization init_teecore() function.
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
show more ...
|
| ff7b1263 | 10-Oct-2014 |
Pascal Brand <pascal.brand@st.com> |
Remove SW version of the RNG which is not secure enough
Reviewed-by: Jens Wiklander jens.wiklander@linaro.org Signed-off-by: Pascal Brand <pascal.brand@st.com> |
| 267163b3 | 09-Oct-2014 |
Pascal Brand <pascal.brand@st.com> |
CFG_TEE_CORE_LOG_LEVEL=0 DEBUG=0 is now up in Travis
Reviewed-by: Jens Wiklander jens.wiklander@linaro.org Signed-off-by: Pascal Brand <pascal.brand@st.com> |