Hi @ygrssm
Do you mean that the same key is imported again? There's a difference if a key is imported first time and then updated second time. If a key slot is empty, key encryption and authentication is optional. If a key slot is not empty, authentication is mandatory and encryption is optional based on user rights. You can take a look at Table 47 and 48 in HSE firmware reference manual v2.5. Also the key counter needs to be increased.
It is rather complicated operation, so the recommendation is to erase such key if possible and then import new key to empty slot.
Regards,
Lukas