Home
last modified time | relevance | path

Searched hist:"5071 d7d1cadc5d8ee561378ad41896017581e446" (Results 1 – 1 of 1) sorted by relevance

/optee_os/ta/pkcs11/src/
H A Dpkcs11_attributes.c5071d7d1cadc5d8ee561378ad41896017581e446 Sun Jul 30 05:08:15 UTC 2023 Vesa Jääskeläinen <vesa.jaaskelainen@vaisala.com> ta: pkcs11: on RSA public key import calculate CKA_MODULUS_BITS

When RSA public key is created with C_CreateObject() CKA_MODULUS_BITS is
not allowed to be specified.

The tooling like pkcs11-tool expects that the value is there.

In specification it is not specified clearly that it needs to be
calculated but it is assumed to be in the RSA public key object.

Calculate the value and add it to the object during RSA public key import.

Signed-off-by: Vesa Jääskeläinen <vesa.jaaskelainen@vaisala.com>
Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>