Multiplicative inverse of a polynomial in $GF(8)$











up vote
0
down vote

favorite












I am trying to find the inverse of $x ^3+x +1$ in $GF(8)$.
I have done the Euclidean algorithm but I am stuck in the forward process to get the inverse. Please explain how to do it from reverse.










share|cite|improve this question
























  • Do it this way - much less painful and less error-prone.
    – Bill Dubuque
    Nov 15 at 0:25












  • Normally $x$ stands for an indeterminate, when $x^3+x+1$ is a polynomial. Polynomials don't have inverses in a finite field. If, as I suspect, $x$ stands for some element of $GF(8)$ you need to tell us which element. Or at least, tell us its minimal polynomial. You see, very often the field $GF(8)$ is defined as the quotient ring $GF(2)[x]/langle x^3+x+1rangle$. But, in that field the coset of $x^3+x+1$ is equal to zero. Again implying that it has no inverse (can't divide by zero).
    – Jyrki Lahtonen
    Nov 15 at 4:14










  • The (only) other alternative is to have defined $GF(8)$ as the quotien $GF(2)[x]/langle x^3+x^2+1rangle$. In that case the coset of $x^3+x+1$ equals the coset of $x^2+x$ (because $(x^3+x+1)-(x^3+x^2+1)=x^2+x$). You can find the inverse of that by the usual process involving extended Euclid. You see, to positively id an element of the quotient ring we customarily reduce them by the polynomial defining the field.
    – Jyrki Lahtonen
    Nov 15 at 4:17






  • 1




    But, Mariam, the polynomial $x^8+x^4+x^3+x+1$ defines the version of the field $GF(2^8)=GF(256)=GF(2)[x]/langle x^8+x^4+x^3+x+1rangle$ IIRC used in AES cryptosystem (among other things).
    – Jyrki Lahtonen
    Nov 15 at 20:10








  • 1




    Here I spell out what $GF(8)$, also known as $Bbb{F}_8$, looks like. If I were to use $GF(256)$ in a computer program I would build a similar logarithm table for $GF(256)$ and use it calculate inverses.
    – Jyrki Lahtonen
    Nov 15 at 20:15

















up vote
0
down vote

favorite












I am trying to find the inverse of $x ^3+x +1$ in $GF(8)$.
I have done the Euclidean algorithm but I am stuck in the forward process to get the inverse. Please explain how to do it from reverse.










share|cite|improve this question
























  • Do it this way - much less painful and less error-prone.
    – Bill Dubuque
    Nov 15 at 0:25












  • Normally $x$ stands for an indeterminate, when $x^3+x+1$ is a polynomial. Polynomials don't have inverses in a finite field. If, as I suspect, $x$ stands for some element of $GF(8)$ you need to tell us which element. Or at least, tell us its minimal polynomial. You see, very often the field $GF(8)$ is defined as the quotient ring $GF(2)[x]/langle x^3+x+1rangle$. But, in that field the coset of $x^3+x+1$ is equal to zero. Again implying that it has no inverse (can't divide by zero).
    – Jyrki Lahtonen
    Nov 15 at 4:14










  • The (only) other alternative is to have defined $GF(8)$ as the quotien $GF(2)[x]/langle x^3+x^2+1rangle$. In that case the coset of $x^3+x+1$ equals the coset of $x^2+x$ (because $(x^3+x+1)-(x^3+x^2+1)=x^2+x$). You can find the inverse of that by the usual process involving extended Euclid. You see, to positively id an element of the quotient ring we customarily reduce them by the polynomial defining the field.
    – Jyrki Lahtonen
    Nov 15 at 4:17






  • 1




    But, Mariam, the polynomial $x^8+x^4+x^3+x+1$ defines the version of the field $GF(2^8)=GF(256)=GF(2)[x]/langle x^8+x^4+x^3+x+1rangle$ IIRC used in AES cryptosystem (among other things).
    – Jyrki Lahtonen
    Nov 15 at 20:10








  • 1




    Here I spell out what $GF(8)$, also known as $Bbb{F}_8$, looks like. If I were to use $GF(256)$ in a computer program I would build a similar logarithm table for $GF(256)$ and use it calculate inverses.
    – Jyrki Lahtonen
    Nov 15 at 20:15















up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am trying to find the inverse of $x ^3+x +1$ in $GF(8)$.
I have done the Euclidean algorithm but I am stuck in the forward process to get the inverse. Please explain how to do it from reverse.










share|cite|improve this question















I am trying to find the inverse of $x ^3+x +1$ in $GF(8)$.
I have done the Euclidean algorithm but I am stuck in the forward process to get the inverse. Please explain how to do it from reverse.







number-theory galois-theory finite-fields cryptography






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Nov 15 at 8:59

























asked Nov 15 at 0:22









Mariam Mashuryan

13




13












  • Do it this way - much less painful and less error-prone.
    – Bill Dubuque
    Nov 15 at 0:25












  • Normally $x$ stands for an indeterminate, when $x^3+x+1$ is a polynomial. Polynomials don't have inverses in a finite field. If, as I suspect, $x$ stands for some element of $GF(8)$ you need to tell us which element. Or at least, tell us its minimal polynomial. You see, very often the field $GF(8)$ is defined as the quotient ring $GF(2)[x]/langle x^3+x+1rangle$. But, in that field the coset of $x^3+x+1$ is equal to zero. Again implying that it has no inverse (can't divide by zero).
    – Jyrki Lahtonen
    Nov 15 at 4:14










  • The (only) other alternative is to have defined $GF(8)$ as the quotien $GF(2)[x]/langle x^3+x^2+1rangle$. In that case the coset of $x^3+x+1$ equals the coset of $x^2+x$ (because $(x^3+x+1)-(x^3+x^2+1)=x^2+x$). You can find the inverse of that by the usual process involving extended Euclid. You see, to positively id an element of the quotient ring we customarily reduce them by the polynomial defining the field.
    – Jyrki Lahtonen
    Nov 15 at 4:17






  • 1




    But, Mariam, the polynomial $x^8+x^4+x^3+x+1$ defines the version of the field $GF(2^8)=GF(256)=GF(2)[x]/langle x^8+x^4+x^3+x+1rangle$ IIRC used in AES cryptosystem (among other things).
    – Jyrki Lahtonen
    Nov 15 at 20:10








  • 1




    Here I spell out what $GF(8)$, also known as $Bbb{F}_8$, looks like. If I were to use $GF(256)$ in a computer program I would build a similar logarithm table for $GF(256)$ and use it calculate inverses.
    – Jyrki Lahtonen
    Nov 15 at 20:15




















  • Do it this way - much less painful and less error-prone.
    – Bill Dubuque
    Nov 15 at 0:25












  • Normally $x$ stands for an indeterminate, when $x^3+x+1$ is a polynomial. Polynomials don't have inverses in a finite field. If, as I suspect, $x$ stands for some element of $GF(8)$ you need to tell us which element. Or at least, tell us its minimal polynomial. You see, very often the field $GF(8)$ is defined as the quotient ring $GF(2)[x]/langle x^3+x+1rangle$. But, in that field the coset of $x^3+x+1$ is equal to zero. Again implying that it has no inverse (can't divide by zero).
    – Jyrki Lahtonen
    Nov 15 at 4:14










  • The (only) other alternative is to have defined $GF(8)$ as the quotien $GF(2)[x]/langle x^3+x^2+1rangle$. In that case the coset of $x^3+x+1$ equals the coset of $x^2+x$ (because $(x^3+x+1)-(x^3+x^2+1)=x^2+x$). You can find the inverse of that by the usual process involving extended Euclid. You see, to positively id an element of the quotient ring we customarily reduce them by the polynomial defining the field.
    – Jyrki Lahtonen
    Nov 15 at 4:17






  • 1




    But, Mariam, the polynomial $x^8+x^4+x^3+x+1$ defines the version of the field $GF(2^8)=GF(256)=GF(2)[x]/langle x^8+x^4+x^3+x+1rangle$ IIRC used in AES cryptosystem (among other things).
    – Jyrki Lahtonen
    Nov 15 at 20:10








  • 1




    Here I spell out what $GF(8)$, also known as $Bbb{F}_8$, looks like. If I were to use $GF(256)$ in a computer program I would build a similar logarithm table for $GF(256)$ and use it calculate inverses.
    – Jyrki Lahtonen
    Nov 15 at 20:15


















Do it this way - much less painful and less error-prone.
– Bill Dubuque
Nov 15 at 0:25






Do it this way - much less painful and less error-prone.
– Bill Dubuque
Nov 15 at 0:25














Normally $x$ stands for an indeterminate, when $x^3+x+1$ is a polynomial. Polynomials don't have inverses in a finite field. If, as I suspect, $x$ stands for some element of $GF(8)$ you need to tell us which element. Or at least, tell us its minimal polynomial. You see, very often the field $GF(8)$ is defined as the quotient ring $GF(2)[x]/langle x^3+x+1rangle$. But, in that field the coset of $x^3+x+1$ is equal to zero. Again implying that it has no inverse (can't divide by zero).
– Jyrki Lahtonen
Nov 15 at 4:14




Normally $x$ stands for an indeterminate, when $x^3+x+1$ is a polynomial. Polynomials don't have inverses in a finite field. If, as I suspect, $x$ stands for some element of $GF(8)$ you need to tell us which element. Or at least, tell us its minimal polynomial. You see, very often the field $GF(8)$ is defined as the quotient ring $GF(2)[x]/langle x^3+x+1rangle$. But, in that field the coset of $x^3+x+1$ is equal to zero. Again implying that it has no inverse (can't divide by zero).
– Jyrki Lahtonen
Nov 15 at 4:14












The (only) other alternative is to have defined $GF(8)$ as the quotien $GF(2)[x]/langle x^3+x^2+1rangle$. In that case the coset of $x^3+x+1$ equals the coset of $x^2+x$ (because $(x^3+x+1)-(x^3+x^2+1)=x^2+x$). You can find the inverse of that by the usual process involving extended Euclid. You see, to positively id an element of the quotient ring we customarily reduce them by the polynomial defining the field.
– Jyrki Lahtonen
Nov 15 at 4:17




The (only) other alternative is to have defined $GF(8)$ as the quotien $GF(2)[x]/langle x^3+x^2+1rangle$. In that case the coset of $x^3+x+1$ equals the coset of $x^2+x$ (because $(x^3+x+1)-(x^3+x^2+1)=x^2+x$). You can find the inverse of that by the usual process involving extended Euclid. You see, to positively id an element of the quotient ring we customarily reduce them by the polynomial defining the field.
– Jyrki Lahtonen
Nov 15 at 4:17




1




1




But, Mariam, the polynomial $x^8+x^4+x^3+x+1$ defines the version of the field $GF(2^8)=GF(256)=GF(2)[x]/langle x^8+x^4+x^3+x+1rangle$ IIRC used in AES cryptosystem (among other things).
– Jyrki Lahtonen
Nov 15 at 20:10






But, Mariam, the polynomial $x^8+x^4+x^3+x+1$ defines the version of the field $GF(2^8)=GF(256)=GF(2)[x]/langle x^8+x^4+x^3+x+1rangle$ IIRC used in AES cryptosystem (among other things).
– Jyrki Lahtonen
Nov 15 at 20:10






1




1




Here I spell out what $GF(8)$, also known as $Bbb{F}_8$, looks like. If I were to use $GF(256)$ in a computer program I would build a similar logarithm table for $GF(256)$ and use it calculate inverses.
– Jyrki Lahtonen
Nov 15 at 20:15






Here I spell out what $GF(8)$, also known as $Bbb{F}_8$, looks like. If I were to use $GF(256)$ in a computer program I would build a similar logarithm table for $GF(256)$ and use it calculate inverses.
– Jyrki Lahtonen
Nov 15 at 20:15












1 Answer
1






active

oldest

votes

















up vote
0
down vote













Hint: The field $GF(8)$ is isomorphic to $GF(2)[x]/langle x^3+x+1rangle$ or to $GF(2)[x]/langle x^3+x^2+1rangle$. The polynomials $x^3+x+1$ and $x^3+x^2+1$ are the only irreducible polynomials over $GF(2)$ (and they are conjugate).
The elements of $GF(8)$ are the residue classes of the polynomials $ax^2+bx+c$, where $a,b,cin GF(2)$. So maybe you should rethink about your question.






share|cite|improve this answer





















  • What do you mean by those polynomials being conjugate?
    – Tobias Kildetoft
    Nov 23 at 21:50






  • 1




    The comment thread under the question sounds a lot like the OP didn't actually mean $GF(8)$ but $GF(2^8)$, represented using the primitive polynomial $x^8+x^4+x^3+x+1$.
    – Henning Makholm
    Nov 23 at 21:51













Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2999014%2fmultiplicative-inverse-of-a-polynomial-in-gf8%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













Hint: The field $GF(8)$ is isomorphic to $GF(2)[x]/langle x^3+x+1rangle$ or to $GF(2)[x]/langle x^3+x^2+1rangle$. The polynomials $x^3+x+1$ and $x^3+x^2+1$ are the only irreducible polynomials over $GF(2)$ (and they are conjugate).
The elements of $GF(8)$ are the residue classes of the polynomials $ax^2+bx+c$, where $a,b,cin GF(2)$. So maybe you should rethink about your question.






share|cite|improve this answer





















  • What do you mean by those polynomials being conjugate?
    – Tobias Kildetoft
    Nov 23 at 21:50






  • 1




    The comment thread under the question sounds a lot like the OP didn't actually mean $GF(8)$ but $GF(2^8)$, represented using the primitive polynomial $x^8+x^4+x^3+x+1$.
    – Henning Makholm
    Nov 23 at 21:51

















up vote
0
down vote













Hint: The field $GF(8)$ is isomorphic to $GF(2)[x]/langle x^3+x+1rangle$ or to $GF(2)[x]/langle x^3+x^2+1rangle$. The polynomials $x^3+x+1$ and $x^3+x^2+1$ are the only irreducible polynomials over $GF(2)$ (and they are conjugate).
The elements of $GF(8)$ are the residue classes of the polynomials $ax^2+bx+c$, where $a,b,cin GF(2)$. So maybe you should rethink about your question.






share|cite|improve this answer





















  • What do you mean by those polynomials being conjugate?
    – Tobias Kildetoft
    Nov 23 at 21:50






  • 1




    The comment thread under the question sounds a lot like the OP didn't actually mean $GF(8)$ but $GF(2^8)$, represented using the primitive polynomial $x^8+x^4+x^3+x+1$.
    – Henning Makholm
    Nov 23 at 21:51















up vote
0
down vote










up vote
0
down vote









Hint: The field $GF(8)$ is isomorphic to $GF(2)[x]/langle x^3+x+1rangle$ or to $GF(2)[x]/langle x^3+x^2+1rangle$. The polynomials $x^3+x+1$ and $x^3+x^2+1$ are the only irreducible polynomials over $GF(2)$ (and they are conjugate).
The elements of $GF(8)$ are the residue classes of the polynomials $ax^2+bx+c$, where $a,b,cin GF(2)$. So maybe you should rethink about your question.






share|cite|improve this answer












Hint: The field $GF(8)$ is isomorphic to $GF(2)[x]/langle x^3+x+1rangle$ or to $GF(2)[x]/langle x^3+x^2+1rangle$. The polynomials $x^3+x+1$ and $x^3+x^2+1$ are the only irreducible polynomials over $GF(2)$ (and they are conjugate).
The elements of $GF(8)$ are the residue classes of the polynomials $ax^2+bx+c$, where $a,b,cin GF(2)$. So maybe you should rethink about your question.







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Nov 23 at 21:44









Wuestenfux

2,6621410




2,6621410












  • What do you mean by those polynomials being conjugate?
    – Tobias Kildetoft
    Nov 23 at 21:50






  • 1




    The comment thread under the question sounds a lot like the OP didn't actually mean $GF(8)$ but $GF(2^8)$, represented using the primitive polynomial $x^8+x^4+x^3+x+1$.
    – Henning Makholm
    Nov 23 at 21:51




















  • What do you mean by those polynomials being conjugate?
    – Tobias Kildetoft
    Nov 23 at 21:50






  • 1




    The comment thread under the question sounds a lot like the OP didn't actually mean $GF(8)$ but $GF(2^8)$, represented using the primitive polynomial $x^8+x^4+x^3+x+1$.
    – Henning Makholm
    Nov 23 at 21:51


















What do you mean by those polynomials being conjugate?
– Tobias Kildetoft
Nov 23 at 21:50




What do you mean by those polynomials being conjugate?
– Tobias Kildetoft
Nov 23 at 21:50




1




1




The comment thread under the question sounds a lot like the OP didn't actually mean $GF(8)$ but $GF(2^8)$, represented using the primitive polynomial $x^8+x^4+x^3+x+1$.
– Henning Makholm
Nov 23 at 21:51






The comment thread under the question sounds a lot like the OP didn't actually mean $GF(8)$ but $GF(2^8)$, represented using the primitive polynomial $x^8+x^4+x^3+x+1$.
– Henning Makholm
Nov 23 at 21:51




















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2999014%2fmultiplicative-inverse-of-a-polynomial-in-gf8%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Berounka

Sphinx de Gizeh

Different font size/position of beamer's navigation symbols template's content depending on regular/plain...