A HMAC is usually said to be H(sk || msg) for some secret key sk and message msg.
My first question is, can we compute it as H(msg || sk) instead ? Is there any drawbacks doing it ?
If the answer is yes, consider H as vulnerable to length extension attacks, would such a MAC be vulnerable to length extension attacks ? I can't see how since such an attack would just lead to H(msg || sk || msg2) which is not valid.