Please consider this answer before reading
I am trying to find GCD of two polynomials, but I have some troubles understanding division and euclidean algorithms:
1) In description of division algorithm it is stated that polynomial b must be of degree N-1, but when finding the inverse of polynomial we must pass $x^N - 1$ as b
2) If previous condition is ignored, division algorithm still won't work properly because of the next condition:
deg r >= N
if N is taken from parameter set, it doesn't make sence, because NTRU operates with polynomials of degree less than N.
So, consider next scenario:
$N = 11$
$a = -1 + x + x^2 + -x^4 + x^6 + x^9 + -x^{10}$
$b = x^N - 1 = x^{11} - 1$
Division algorithm would return quontient = 0 and remainder = a, since degree of a is less than N.
And the result will be the same regardless of the value of a.
What am I missing? I doubt that such basic algorithm could be documented wrong, so please help me understand what did I get wrong.