Hi @shravani
to update a key, the key must be either encrypted or authenticated. It's not possible to update a key in plain format.
I have asked SW team if they already have a demo for authenticated key update in MCAL crypto because it's not so simple. I will let you know later.
As a workaround, an option is to erase the key and load it again in plain format. See HSE FW RM for details. Such function is not available in Crypto driver, user needs to write own code to execute such service.
Regards,
Lukas