Hello guys I am looking to calculate the Inverse of a given polynomial in Galois field I have found the little Fermat's algorithm and the Itoh-Tsujii I am getting a bit confused with both algorithm as if having a squaring and multiplication operation should a reduction modulus be used [A.A mod F(x)] and then A.[A.A mod F(x)] and so on or the modulus operation should be used at the end of the final answer [A.A.A.A....]mod F(x)
Are they applicable to polynomials basis and not normal basis ? or is this operation for the GF(2) and not the extended fields ?
Thank you