commit | d76bd278d9e221d74b398cecd468b503811e0dad | [log] [tgz] |
---|---|---|
author | Edison Ai <edison.ai@arm.com> | Wed Dec 19 15:36:28 2018 +0800 |
committer | Jérôme Forissier <jerome@forissier.org> | Mon Aug 02 10:48:41 2021 +0200 |
tree | d55923113c47f05f64a7e2edf8d1583a285f3588 | |
parent | e5b6c167f80955ce0f4b32101dafc719ba2d205a [diff] |
libmbedtls: add interfaces in mbedtls for context memory operation For integrating into OPTEE_OS, it needs add some interfaces: 1. add mbedtls_cipher_clone() for cipher to copy context between two operations. 2. add mbedtls_cipher_setup_info() for cipher. cipher need to get its "cipher_info" according the key length, while the key length is not an input in allocate function. So, use a default key len in the beginning. It need to reset the cipher info again in init function. 3. add mbedtls_cipher_cmac_setup() for cmac. This function is separate from mbedtls_cipher_cmac_starts(). 4. copy hmac context in md. Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Edison Ai <edison.ai@arm.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> [jf: rebase onto mbedtls-2.22.0] Signed-off-by: Jerome Forissier <jerome@forissier.org> [jf: rebase onto mbedtls-2.27.0] Signed-off-by: Jerome Forissier <jerome@forissier.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