There is a device that uses a secret key Sk to encrypt data. Assume this Sk is compromised.
Could the following scheme be considered safe, in case we want to change the compromised Sk:
We store some secret random number in the device- SRN. The new secret key would be equal to Sk = SRN xor RN, where SRN is the stored in the device secret random number (we know this number), RN is some random number that we send to the device when we want to change the Sk.