mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Functions SK_CCA_generate_ec_key_pair(), SK_CCA_generate_ec_key_pair(), SK_EP11_generate_ec_key_pair() and SK_EP11_generate_rsa_key_pair() are supposed to allow parameter key_token to be NULL. In this case the required buffer size is returned in key_token_length only. This size query does not work because the parameter checking rejects the call with a NULL key_token returning -EINVAL. Currently the size query is not used by any known caller, but lets correct it anyway. Assisted-by: IBM Bob:2.0.0 Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com> Reviewed-by: Finn Callies <fcallies@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>