Searched hist:"02 b4d42ac4f717041ed1ee66a1e7f0d3f640366f" (Results 1 – 2 of 2) sorted by relevance
| /optee_os/ta/pkcs11/src/ |
| H A D | pkcs11_token.h | 02b4d42ac4f717041ed1ee66a1e7f0d3f640366f Wed Apr 22 15:06:31 UTC 2020 Etienne Carriere <etienne.carriere@linaro.org> ta: pkcs11: set default token serial number based on token ID
With this change, token serial number is string "0...0000000<N>" over 16 characters, led with '0' and ending with token ID decimal value.
It is common for the client application to decide the slot to use based on the token serial number. Therefore change the default value to be based on the token ID to avoid having the same serial numbers on every token.
Co-developed-by: Ricardo Salveti <ricardo@foundries.io> Signed-off-by: Ricardo Salveti <ricardo@foundries.io> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> [jf: cast sizeof() to int in snprintf() with field with specifier '*'] Signed-off-by: Jerome Forissier <jerome@forissier.org>
|
| H A D | pkcs11_token.c | 02b4d42ac4f717041ed1ee66a1e7f0d3f640366f Wed Apr 22 15:06:31 UTC 2020 Etienne Carriere <etienne.carriere@linaro.org> ta: pkcs11: set default token serial number based on token ID
With this change, token serial number is string "0...0000000<N>" over 16 characters, led with '0' and ending with token ID decimal value.
It is common for the client application to decide the slot to use based on the token serial number. Therefore change the default value to be based on the token ID to avoid having the same serial numbers on every token.
Co-developed-by: Ricardo Salveti <ricardo@foundries.io> Signed-off-by: Ricardo Salveti <ricardo@foundries.io> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> [jf: cast sizeof() to int in snprintf() with field with specifier '*'] Signed-off-by: Jerome Forissier <jerome@forissier.org>
|