| c020046d | 23-Nov-2021 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: dt: fix inline description of _fdt_get_status()
Corrects inline comment describing _fdt_get_status() helper function.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etien
core: dt: fix inline description of _fdt_get_status()
Corrects inline comment describing _fdt_get_status() helper function.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 289611b8 | 24-Nov-2021 |
Jorge Ramirez-Ortiz <jorge@foundries.io> |
crypto: drivers: se050: object identifier persistence property
The persistence of the object identifiers can be obtained by interrogating the device. Since objects can now be created by external act
crypto: drivers: se050: object identifier persistence property
The persistence of the object identifiers can be obtained by interrogating the device. Since objects can now be created by external actors using the APDU PTA, we will drop the current implementation which flags the object transient property using a bit on the object identifier itself.
Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io> Acked-by: Jerome Forissier <jerome@forissier.org>
show more ...
|
| 32ddbffb | 13-Nov-2021 |
Jorge Ramirez-Ortiz <jorge@foundries.io> |
crypto: se050: APDU driver
This driver allows trusted applications to send raw APDU frames to the SE050 device. The Plug-and-Trust subsystem will route the frames back to OP-TEE for SCP03 encryption
crypto: se050: APDU driver
This driver allows trusted applications to send raw APDU frames to the SE050 device. The Plug-and-Trust subsystem will route the frames back to OP-TEE for SCP03 encryption and I2C transmission to the bus.
Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io> Acked-by: Jerome Forissier <jerome@forissier.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| b0e1c5e4 | 13-Nov-2021 |
Jorge Ramirez-Ortiz <jorge@foundries.io> |
core: pta: APDU pseudo trusted application
Allow trusted applications and REE clients to send APDU frames to a secure element.
Even though secure elements are usually accessible from serial buses,
core: pta: APDU pseudo trusted application
Allow trusted applications and REE clients to send APDU frames to a secure element.
Even though secure elements are usually accessible from serial buses, when they have been initialized in OP-TEE is possible that the SCP03 secret keys are only available in the Trusted World and therefore APDU requests must be handled in OP-TEE.
Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io> Acked-by: Jerome Forissier <jerome@forissier.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| ff0c5d42 | 13-Nov-2021 |
Jorge Ramirez-Ortiz <jorge@foundries.io> |
core: crypto: Secure Element cryptographic interface
Extract cryptographic operations specific to Secure Elements from the more generic cryptographic interface.
Also, the Secure Channel Protocol03
core: crypto: Secure Element cryptographic interface
Extract cryptographic operations specific to Secure Elements from the more generic cryptographic interface.
Also, the Secure Channel Protocol03 is a global protocol supported by most SEs and not NXP SE05X specific. Use this commit to reflect this fact.
Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 8c8316db | 24-Nov-2021 |
Etienne Carriere <etienne.carriere@st.com> |
drivers: stm32_bsec: move to early_init stage
BSEC driver shall initialize a early_init initcall level to prepare OTP access needed to read the HUK from OTPs.
Acked-by: Jerome Forissier <jerome@for
drivers: stm32_bsec: move to early_init stage
BSEC driver shall initialize a early_init initcall level to prepare OTP access needed to read the HUK from OTPs.
Acked-by: Jerome Forissier <jerome@forissier.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
show more ...
|
| 7b05d514 | 24-Nov-2021 |
Etienne Carriere <etienne.carriere@st.com> |
drivers: stm32_bsec: fix error on SAFMEM power-up
Fix unbalanced access locking when SAFMEM power up sequence fails.
Acked-by: Jerome Forissier <jerome@forissier.org> Acked-by: Jens Wiklander <jens
drivers: stm32_bsec: fix error on SAFMEM power-up
Fix unbalanced access locking when SAFMEM power up sequence fails.
Acked-by: Jerome Forissier <jerome@forissier.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Lionel Debieve <lionel.debieve@foss.st.com> Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
show more ...
|
| b76fcab5 | 24-Nov-2021 |
Etienne Carriere <etienne.carriere@st.com> |
drivers: stm32_bsec: increase timeout
Increase stm32_bsec timeout to handle worst case at 10ms.
Acked-by: Jerome Forissier <jerome@forissier.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org
drivers: stm32_bsec: increase timeout
Increase stm32_bsec timeout to handle worst case at 10ms.
Acked-by: Jerome Forissier <jerome@forissier.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
show more ...
|
| 8afb7c41 | 24-Nov-2021 |
Etienne Carriere <etienne.carriere@st.com> |
drivers: stm32_bsec: return busy/bad parms where applicable
Change stm32_bsec driver to return TEE_ERROR_BUSY when the BSEC interface reports a busy state and TEE_ERROR_BAD_PARAMETERS word programmi
drivers: stm32_bsec: return busy/bad parms where applicable
Change stm32_bsec driver to return TEE_ERROR_BUSY when the BSEC interface reports a busy state and TEE_ERROR_BAD_PARAMETERS word programming/locking has failed which means provided arguments were invalid.
Acked-by: Jerome Forissier <jerome@forissier.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
show more ...
|
| 33b38f8c | 21-Nov-2021 |
Ruslan Piasetskyi <ruslan.piasetskyi@gmail.com> |
core: introduce CFG_CORE_HUK_SUBKEY_COMPAT_USE_OTP_DIE_ID
Adds CFG_CORE_HUK_SUBKEY_COMPAT_USE_OTP_DIE_ID which if set to 'y' makes huk_subkey_derive() generate SSK using tee_otp_get_die_id().
Old s
core: introduce CFG_CORE_HUK_SUBKEY_COMPAT_USE_OTP_DIE_ID
Adds CFG_CORE_HUK_SUBKEY_COMPAT_USE_OTP_DIE_ID which if set to 'y' makes huk_subkey_derive() generate SSK using tee_otp_get_die_id().
Old scheme for SSK generation: SSK = HMAC_SHA256(HUK, Chip_ID || "ONLY_FOR_tee_fs_ssk") This config changes Chip_ID from the default BEEF-like value to the result of tee_otp_get_die_id().
Note that this option works only if CFG_CORE_HUK_SUBKEY_COMPAT=y.
Acked-by: Jerome Forissier <jerome@forissier.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Ruslan Piasetskyi <ruslan.piasetskyi@gmail.com>
show more ...
|
| a748f9ed | 24-Nov-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
Add config option CFG_WARN_DECL_AFTER_STATEMENT
Adds configuration option CFG_WARN_DECL_AFTER_STATEMENT which adds the warning -Wdeclaration-after-statement.
The coding style doesn't allow declarat
Add config option CFG_WARN_DECL_AFTER_STATEMENT
Adds configuration option CFG_WARN_DECL_AFTER_STATEMENT which adds the warning -Wdeclaration-after-statement.
The coding style doesn't allow declarations after statements in the code. So add a warning for this to let the compiler catch this before the review.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 9c3a1069 | 24-Nov-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
avb: Fix warnings in ta/avb/entry.c
Fixes -Wdeclaration-after-statement warnings in ta/avb/entry.c: ta/avb/entry.c: In function ‘write_persist_value’: ta/avb/entry.c:267:2: error: ISO C90 forbids mi
avb: Fix warnings in ta/avb/entry.c
Fixes -Wdeclaration-after-statement warnings in ta/avb/entry.c: ta/avb/entry.c: In function ‘write_persist_value’: ta/avb/entry.c:267:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] char *name_buf = params[0].memref.buffer; ^~~~ ta/avb/entry.c: In function ‘read_persist_value’: ta/avb/entry.c:316:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] char *name_buf = params[0].memref.buffer; ^~~~
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| afb1cc80 | 24-Nov-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: Fix warning in gprof_send_rpc()
Fixes a -Wdeclaration-after-statement warning in gprof_send_rpc(): core/pta/gprof.c: In function ‘gprof_send_rpc’: core/pta/gprof.c:35:2: error: ISO C90 forbids
core: Fix warning in gprof_send_rpc()
Fixes a -Wdeclaration-after-statement warning in gprof_send_rpc(): core/pta/gprof.c: In function ‘gprof_send_rpc’: core/pta/gprof.c:35:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct thread_param params[3] = { ^~~~~~
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 6e2de0d7 | 24-Nov-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: Fix warnings in core/kernel/lockdep.c
Fixes -Wdeclaration-after-statement warnings in core/kernel/lockdep.c: core/kernel/lockdep.c: In function 'lockdep_graph_get_shortest_cycle': core/kernel/
core: Fix warnings in core/kernel/lockdep.c
Fixes -Wdeclaration-after-statement warnings in core/kernel/lockdep.c: core/kernel/lockdep.c: In function 'lockdep_graph_get_shortest_cycle': core/kernel/lockdep.c:151:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct lockdep_node *n = qe->node; ^~~~~~ core/kernel/lockdep.c:155:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct lockdep_edge *e = NULL; ^~~~~~ core/kernel/lockdep.c:183:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] size_t nlen = qe->pathlen + 1; ^~~~~~ core/kernel/lockdep.c: In function 'lockdep_visit': core/kernel/lockdep.c:221:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct lockdep_edge *e; ^~~~~~ core/kernel/lockdep.c: In function '__lockdep_lock_acquire': core/kernel/lockdep.c:343:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct lockdep_lock *lock = NULL; ^~~~~~ core/kernel/lockdep.c:356:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] TEE_Result res = lockdep_graph_sort(graph); ^~~~~~~~~~ core/kernel/lockdep.c: In function '__lockdep_lock_tryacquire': core/kernel/lockdep.c:390:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct lockdep_lock *lock = NULL; ^~~~~~
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 7c94d5d6 | 24-Nov-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: Fix warnings in core/tee/socket.c
Fixes -Wdeclaration-after-statement warnings in core/tee/socket.c: core/tee/socket.c: In function ‘socket_open’: core/tee/socket.c:44:2: error: ISO C90 forbid
core: Fix warnings in core/tee/socket.c
Fixes -Wdeclaration-after-statement warnings in core/tee/socket.c: core/tee/socket.c: In function ‘socket_open’: core/tee/socket.c:44:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct thread_param tpm[4] = { ^~~~~~ core/tee/socket.c: In function ‘socket_close’: core/tee/socket.c:76:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct thread_param tpm = THREAD_PARAM_VALUE(IN, OPTEE_RPC_SOCKET_CLOSE, ^~~~~~ core/tee/socket.c: In function ‘socket_send’: core/tee/socket.c:108:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct thread_param tpm[3] = { ^~~~~~ core/tee/socket.c: In function ‘socket_recv’: core/tee/socket.c:147:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct thread_param tpm[3] = { ^~~~~~ core/tee/socket.c: In function ‘socket_ioctl’: core/tee/socket.c:190:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct thread_param tpm[3] = { ^~~~~~
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 5ab3fbc5 | 24-Nov-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: Fix warnings in core/tee/tadb.c
Fixes -Wdeclaration-after-statement warnings in core/tee/tadb.c: core/tee/tadb.c:111:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-
core: Fix warnings in core/tee/tadb.c
Fixes -Wdeclaration-after-statement warnings in core/tee/tadb.c: core/tee/tadb.c:111:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct thread_param params[] = { ^~~~~~ core/tee/tadb.c: In function ‘ta_operation_remove’: core/tee/tadb.c:137:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct thread_param params[] = { ^~~~~~ core/tee/tadb.c: In function ‘ta_load’: core/tee/tadb.c:712:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct thread_param params[] = { ^~~~~~
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 86eb0536 | 24-Nov-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: Fix warnings in core/tee/tee_fs_rpc.c
Fixes -Wdeclaration-after-statement warnings in core/tee/tee_fs_rpc.c: core/tee/tee_fs_rpc.c: In function ‘operation_open_dfh’: core/tee/tee_fs_rpc.c:49:2
core: Fix warnings in core/tee/tee_fs_rpc.c
Fixes -Wdeclaration-after-statement warnings in core/tee/tee_fs_rpc.c: core/tee/tee_fs_rpc.c: In function ‘operation_open_dfh’: core/tee/tee_fs_rpc.c:49:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct tee_fs_rpc_operation op = { ^~~~~~ core/tee/tee_fs_rpc.c: In function ‘tee_fs_rpc_remove_dfh’: core/tee/tee_fs_rpc.c:192:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct tee_fs_rpc_operation op = { ^~~~~~
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 9ff77e1e | 24-Nov-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: Fix warnings in core/tee/tee_svc_cryp.c
Fixes -Wdeclaration-after-statement warnings in core/tee/tee_svc_cryp.c: core/tee/tee_svc_cryp.c: In function ‘syscall_cryp_obj_populate’: core/tee/tee_
core: Fix warnings in core/tee/tee_svc_cryp.c
Fixes -Wdeclaration-after-statement warnings in core/tee/tee_svc_cryp.c: core/tee/tee_svc_cryp.c: In function ‘syscall_cryp_obj_populate’: core/tee/tee_svc_cryp.c:1665:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] size_t alloc_size = 0; ^~~~~~ core/tee/tee_svc_cryp.c: In function ‘syscall_obj_generate_key’: core/tee/tee_svc_cryp.c:1907:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] size_t alloc_size = 0; ^~~~~~ core/tee/tee_svc_cryp.c: In function ‘syscall_cryp_derive_key’: core/tee/tee_svc_cryp.c:2975:3: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] size_t bin_size = params[0].content.ref.length; ^~~~~~ core/tee/tee_svc_cryp.c: In function ‘syscall_asymm_operate’: core/tee/tee_svc_cryp.c:3560:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] size_t alloc_size = 0; ^~~~~~ core/tee/tee_svc_cryp.c: In function ‘syscall_asymm_verify’: core/tee/tee_svc_cryp.c:3734:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] size_t alloc_size = 0; ^~~~~~
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| b259cc96 | 24-Nov-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: Fix warning in register_shm()
Fixes a -Wdeclaration-after-statement warning in register_shm(): core/tee/entry_std.c:491:2: error: ISO C90 forbids mixed declarations and code [-Werror=declarati
core: Fix warning in register_shm()
Fixes a -Wdeclaration-after-statement warning in register_shm(): core/tee/entry_std.c:491:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct optee_msg_param_tmem *tmem = &arg->params[0].u.tmem; ^~~~~~
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 3f4f2e50 | 24-Nov-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: Fix warning in __wq_rpc()
Fixes a -Wdeclaration-after-statement warning in __wq_rpc(): core/kernel/wait_queue.c:36:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-af
core: Fix warning in __wq_rpc()
Fixes a -Wdeclaration-after-statement warning in __wq_rpc(): core/kernel/wait_queue.c:36:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct thread_param params = THREAD_PARAM_VALUE(IN, func, id, 0); ^~~~~~
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 3c6cfce4 | 24-Nov-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: Fix warning in find_chosen_node()
Fixes a -Wdeclaration-after-statement warning in find_chosen_node(): core/kernel/console.c:48:2: error: ISO C90 forbids mixed declarations and code [-Werror=d
core: Fix warning in find_chosen_node()
Fixes a -Wdeclaration-after-statement warning in find_chosen_node(): core/kernel/console.c:48:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] int offset = fdt_path_offset(fdt, "/secure-chosen"); ^~~
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 62d4e938 | 24-Nov-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: Fix warning in mobj_reg_shm_inc_map()
Fixes a -Wdeclaration-after-statement warning in mobj_reg_shm_inc_map() core/arch/arm/mm/mobj_dyn_shm.c: In function ‘mobj_reg_shm_inc_map’: core/arch/arm
core: Fix warning in mobj_reg_shm_inc_map()
Fixes a -Wdeclaration-after-statement warning in mobj_reg_shm_inc_map() core/arch/arm/mm/mobj_dyn_shm.c: In function ‘mobj_reg_shm_inc_map’: core/arch/arm/mm/mobj_dyn_shm.c:188:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] uint32_t exceptions = cpu_spin_lock_xsave(®_shm_map_lock); ^~~~~~~~
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 62dd725f | 24-Nov-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: fix warning in tee_time_get_ree_time()
Fixes a -Wdeclaration-after-statement warning in tee_time_get_ree_time(): core/arch/arm/kernel/tee_time.c: In function ‘tee_time_get_ree_time’: core/arch
core: fix warning in tee_time_get_ree_time()
Fixes a -Wdeclaration-after-statement warning in tee_time_get_ree_time(): core/arch/arm/kernel/tee_time.c: In function ‘tee_time_get_ree_time’: core/arch/arm/kernel/tee_time.c:58:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] struct thread_param params = THREAD_PARAM_VALUE(OUT, 0, 0, 0);
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 5bb4e062 | 24-Nov-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
libutee: Fix warning in TEE_BigIntInvMod()
Fixes a -Wdeclaration-after-statement warning in TEE_BigIntInvMod: lib/libutee/tee_api_arith_mpi.c: In function ‘TEE_BigIntInvMod’: lib/libutee/tee_api_ari
libutee: Fix warning in TEE_BigIntInvMod()
Fixes a -Wdeclaration-after-statement warning in TEE_BigIntInvMod: lib/libutee/tee_api_arith_mpi.c: In function ‘TEE_BigIntInvMod’: lib/libutee/tee_api_arith_mpi.c:539:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] mbedtls_mpi mpi_dest; ^~~~~~~~~~~
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 66e18280 | 24-Nov-2021 |
Jens Wiklander <jens.wiklander@linaro.org> |
libutee: Fix warning in bigint_binary_mod()
Fixes a -Wdeclaration-after-statement warning in bigint_binary_mod: lib/libutee/tee_api_arith_mpi.c: In function ‘bigint_binary_mod’: lib/libutee/tee_api_
libutee: Fix warning in bigint_binary_mod()
Fixes a -Wdeclaration-after-statement warning in bigint_binary_mod: lib/libutee/tee_api_arith_mpi.c: In function ‘bigint_binary_mod’: lib/libutee/tee_api_arith_mpi.c:358:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] mbedtls_mpi mpi_dest; ^~~~~~~~~~~ lib/libutee/tee_api_arith_mpi.c: In function ‘TEE_BigIntInvMod’: lib/libutee/tee_api_arith_mpi.c:539:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] mbedtls_mpi mpi_dest;
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|