Home
last modified time | relevance | path

Searched hist:"2733280 a19c40fb1555b01b983d6eedb47642afd" (Results 1 – 1 of 1) sorted by relevance

/optee_os/lib/libutee/
H A Dtee_api_operations.c2733280a19c40fb1555b01b983d6eedb47642afd Fri Apr 06 08:06:42 UTC 2018 Etienne Carriere <etienne.carriere@linaro.org> libutee: out and tag buffers can be too short in TEE_AEEncryptFinal

With this change, a single call to TEE_AEEncryptFinal() checks both
the output data buffer size and the tag buffer size and return
TEE_ERROR_SHORT_BUFFER with both expected size if at least one
of the provided buffer is too short.

Before this change caller may need to call twice TEE_AEEncryptFinal()
in the right order to get the output buffers sizes, first for the
output data size then for the tag data size.

Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>