commit | 0e83aead89ddccdcf1cc3b47cfa214ceb55e354c | [log] [tgz] |
---|---|---|
author | Jorge Ramirez-Ortiz <jorge@foundries.io> | Mon Jan 17 20:57:10 2022 |
committer | Jerome Forissier <jerome@forissier.org> | Fri Jan 21 16:58:38 2022 |
tree | 8b44f001a4e27251e562d18a77518fc944946c3b | |
parent | 25c616ab1f10c3fbd677cb215aa4dac6fe2d3abd [diff] |
crypto: drivers: se050: rsa: decrypt_es, validate the output buffer The size of the decrypted output is not known until decryption has happened. Use an intermediate buffer large enough to guarantee that the decrypted message will fit. This allows the driver to validate the size of the output buffer passed in the interface. Fixes: xtest pkcs11_1023 Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-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