| commit | 5bafb046bdded23e5aaa61274ecbc483f5b44b4f | [log] [tgz] |
|---|---|---|
| author | Jens Wiklander <jens.wiklander@linaro.org> | Sun May 05 18:56:32 2019 +0200 |
| committer | Jérôme Forissier <jerome.forissier@linaro.org> | Mon May 06 09:07:04 2019 +0200 |
| tree | b9e77a167286db0b5145da722868e51eb467bd71 | |
| parent | 76d249c50589c59b62781699512ff63df28c32f3 [diff] |
tee-supplicant: ioctl_emu_read_ctr(): MAC correct data Prior to this patch was ioctl_emu_read_ctr() calculating a MAC over among other things the uninitialized "op_result". "op_result" often happens to be 0 which is the same as RPMB_RESULT_OK which is returned by compute_hmac() on success. However, this field is not initialized before calculating the MAC so it could very well differ resulting in an invalid MAC. This patch fixes this by initializing "op_result" to RPMB_RESULT_OK before calculating the MAC. Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
This git contains source code for the non-secure side implementation of the OP-TEE project making up the client library and tee-supplicant.
All official OP-TEE documentation has moved to http://optee.readthedocs.io. The information that used to be here in this git can be found under optee_client.
// OP-TEE core maintainers