Open the Portico Schema site
Portico Developer Guide
Key Exchange
Special Processing Rules > Interac Processing > MessageAuthenticationCode > Resetting the MAC Value > Key Exchange

If the transaction response indicates that a KeyExchange is required, perform InteracDeviceKeys request to reset the value and synchronize the keys with the host.