I have a server which has a configured value of AES and HMAC key. The client also should have the same keys.
When the client sends a request, the server interprets this request and reads the message.
Now when the client has the wrong AES and HMAC keys, the server will still interpret the request from the client but get the wrong message out of it since the AES and HMAC keys are different.
Is there a way for the server to tell whether the AES and HMAC keys used by the client are wrong? From what I understand, the server will get the wrong message after decrypting the client request, but cannot tell if the keys used by the client are wrong.