Home
last modified time | relevance | path

Searched hist:"42765 f8253ca53211cfc00d4a2dc177ad6cf0433" (Results 1 – 1 of 1) sorted by relevance

/optee_os/ta/pkcs11/src/
H A Dprocessing_symm.c42765f8253ca53211cfc00d4a2dc177ad6cf0433 Mon Jul 12 16:44:59 UTC 2021 Victor Chong <victor.chong@linaro.org> ta: pkcs11: Fix sign size comparison

The current check does not take into account input signature sizes that
are larger than the hash size, which are invalid and should return an
error. The input signature size can be less than the hash size, but not
for the mechanisms the function is currently used for. Change the check
to match exactly the hash size.

Signed-off-by: Victor Chong <victor.chong@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Ruchika Gupta <ruchika.gupta@linaro.org>
Reviewed-by: Vesa Jääskeläinen <vesa.jaaskelainen@vaisala.com>