3
$\begingroup$

I wasted the last 2 days finding literature and/or some illustrative explanations on how to perform correct multiplications against the MDS-Matrix in Twofish over $\operatorname{GF}(256)$ with $x^8 + x^6 + x^5 + x^3 + 1$.

There seems to be no method - all algorithms I found are using pre-computed MDS tables, which isn't helping me understand it at all.

Could someone provide me with a simple and easy-to-use algorithm for this multiplication?

$\endgroup$
1
  • $\begingroup$ Have you looked at section 4.2 of the Twofish paper? It would be helpful if you mentioned which part you are having trouble with. You need to know how to do 3 things: 1. Add in $GF(2^8)$ 2. multiply in $GF(2^8)$, and matrix multiplication (requires 1 and 2). $\endgroup$
    – user13741
    Jan 9, 2017 at 19:17

1 Answer 1

1
$\begingroup$

Each byte act as a polynomial in $\operatorname{GF}(2^8)$

You will multiply the elements of the matrix in (Galois Field) $\operatorname{GF}(2^8)$ and add them in $\operatorname{GF}(2^8)$

here is a link where you can find a wonderful explanation for $\operatorname{GF}(2^8)$

$\endgroup$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.