I get a request from a client who encrypts the message with the wrong AES key. Is there a way for me to know what AES key the client actually used? I understand I may get the decrypted msg which is likely to be wrong, but from what I understand, the key itself cannot be retrieved from the request sent by the client.
In other words, is there a way for me to do something like this -
if (client.aeskey != server.aeskey), print Error.
Please confirm if my understanding is correct.