Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libutee: fix off-by-one error in tee_buffer_update()
Makes the ROUNDUP() call in the "feeding from src" case consistent with the "feeding from buffer" case a few lines earlier. Without this fix, AES CTR encryption or decryption could fail because update would feed blocks too soon, leaving less than two blocks in the internal buffer thus causing utee_cipher_final() (called from TEE_CipherDoFinal()) to fail and panic the TA. Fixes: #1203 Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
- Loading branch information