I'm currently reading Introduction to Cryptography with Coding Theory by Wade Trappe. On Page 159, it talked about how to decrypt AES. Although the book is about Cryptography, this question is mathematical in nature. One step of AES requires the following operation: $$e_{i,j} = m_{i,j} * c_{i,j} \oplus k_{i,j}$$
where $e_{i,j}, m_{i,j}, c_{i,j}, and \space k_{i,j}$ are all $4 \times 4$ matrices. Each of the matrix's entry is in the form of 8 bits such as 0100 1010
To obtain $c_{i,j}$ in terms of $e_{i,j}$, the book, I believe, multiplies by $m_{i,j}^{-1}$ on both sides of the equation. The books states that $$c_{i,j} = m_{i,j} ^ {-1} e_{i,j} \oplus m_{i,j} ^ {-1} k_{i,j}$$
While the above statement would be true if we can somehow distribute over $\oplus$, I wonder whether the distributive law holds under $\oplus$. According to this post: Distributivity of XOR over Boolean matrix multiplication the distributivity law does not hold. I have thought about it, and I wonder whether the operations, in this case, are special. However, I can not identify a reason for that. So are the operations in the book legit and is it different from the case in the above post?
Thank you.
Matrix multiplication is done as normal. However, each byte is treated as a polynomial under the finite field $GF(2^8)$. XOR Operations between two matrices is equivalent to XORing every element in the same position of two matrices.