commit | 28aa35f5d9df4a9df841ca89fe1b0b21d595b4d7 | [log] [tgz] |
---|---|---|
author | Joakim Bech <joakim.bech@linaro.org> | Mon Jun 24 11:02:07 2019 +0200 |
committer | Jérôme Forissier <jerome@forissier.org> | Tue Oct 08 17:05:54 2019 +0200 |
tree | 49551611fb9f3672463dd2e388cf36e0be8ba717 | |
parent | 45a367d8cf3692389c49058731503c54ec5c70df [diff] |
cryp: ensure that mode is cipher in syscall_cipher_init When calling syscall_cipher_init there is no check being done that the state coming from the TA has been initialized to a valid cipher state. By checking the class we prevent an assert in cipher_ops. Fixes: OP-TEE-2019-0020 Signed-off-by: Joakim Bech <joakim.bech@linaro.org> Reported-by: Martijn Bogaard <bogaard@riscure.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
This git contains source code for the secure side implementation of OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io.
// OP-TEE core maintainers