Home
last modified time | relevance | path

Searched hist:adfad2cd2e6a0d098920397f238c8f9a3dd55bd0 (Results 1 – 1 of 1) sorted by relevance

/optee_os/ta/pkcs11/src/
H A Dpkcs11_attributes.cadfad2cd2e6a0d098920397f238c8f9a3dd55bd0 Mon Jan 08 08:58:50 UTC 2024 Etienne Carriere <etienne.carriere@foss.st.com> ta: pkcs11: fix block size to compute AES key check value

Fix AES block size in compute_check_value_with_ecb(). It is 16 bytes,
not the AES key size. By the way allocate cipher block in the stack
instead of in the heap since the block is quite small.

Fixes: bcac2127a7f1 ("ta: pkcs11: pkcs11_attributes.c: support PKCS11_CKA_CHECK_VALUE")
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>