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$
  • $\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 '17 at 19:17
0
$\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)$

| improve this answer | |
$\endgroup$
  • $\begingroup$ Welcome to Cryptography. We have $\LaTeX$/MathJax enables on our site. Note that your answer is fitting into a link only answer those are usually converted into comments. $\endgroup$ – kelalaka Apr 10 at 15:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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