psa_drv_se_generate_key_t
A function that generates a symmetric or asymmetric key on a secure element If the key type \c type recorded in \p attributes is asymmetric (#PSA_KEY_TYPE_IS_ASYMMETRIC(\c type) = 1), the driver may export the public key at the time of generation, in the format documented for psa_export_public_key() by writing it to the \p pubkey buffer. This is optional, intended for secure elements that output the public key at generation time and that cannot export the public key later. Drivers that do not need this feature should leave \p *pubkey_length set to 0 and should implement the psa_drv_key_management_t::p_export_public function. Some implementations do not support this feature, in which case \p pubkey is \c NULL and \p pubkey_size is 0.