Searched hist:a9aa45d85ee6880c6260f0d3e111263e6ecff2b4 (Results 1 – 3 of 3) sorted by relevance
| /optee_os/ta/pkcs11/src/ |
| H A D | pkcs11_attributes.h | a9aa45d85ee6880c6260f0d3e111263e6ecff2b4 Mon Dec 05 12:09:41 UTC 2022 Valerii Chubar <valerii_chubar@epam.com> ta: pkcs11: Copy secret key data for wrapping
Currently the secret-key data is returned as a pointer to the key attribute parameter. But the RSA private key constitites of multiple parameters, some memory has to be allocated and populated. After the unwrapping an allocated memory has to be freed. To generalise, return the secret key value as a copy.
Signed-off-by: Valerii Chubar <valerii_chubar@epam.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
|
| H A D | processing.c | a9aa45d85ee6880c6260f0d3e111263e6ecff2b4 Mon Dec 05 12:09:41 UTC 2022 Valerii Chubar <valerii_chubar@epam.com> ta: pkcs11: Copy secret key data for wrapping
Currently the secret-key data is returned as a pointer to the key attribute parameter. But the RSA private key constitites of multiple parameters, some memory has to be allocated and populated. After the unwrapping an allocated memory has to be freed. To generalise, return the secret key value as a copy.
Signed-off-by: Valerii Chubar <valerii_chubar@epam.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
|
| H A D | pkcs11_attributes.c | a9aa45d85ee6880c6260f0d3e111263e6ecff2b4 Mon Dec 05 12:09:41 UTC 2022 Valerii Chubar <valerii_chubar@epam.com> ta: pkcs11: Copy secret key data for wrapping
Currently the secret-key data is returned as a pointer to the key attribute parameter. But the RSA private key constitites of multiple parameters, some memory has to be allocated and populated. After the unwrapping an allocated memory has to be freed. To generalise, return the secret key value as a copy.
Signed-off-by: Valerii Chubar <valerii_chubar@epam.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
|