Magma use for NTRU
Posted: Sun Apr 05, 2015 9:53 am
I get the error "Bad argument types Argument types given: RngUPolElt[RngInt]" when I run code for NTRU encryption for p=2+X and the error is generated for this part of the code:
where in this case: R: Univariate Polynomial Ring in X over Integer Ring, a: X^3 + X^2 + X + 1, prime_power: X + 2, N: 11
Would someone please advise on how to evaluate if p is a prime power without the error?
Code: Select all
function InverseModPrimePower( R, a, prime_power, N )
ok, p, r := IsPrimePower(prime_power);
where in this case: R: Univariate Polynomial Ring in X over Integer Ring, a: X^3 + X^2 + X + 1, prime_power: X + 2, N: 11
Would someone please advise on how to evaluate if p is a prime power without the error?