There is currently an issue in the development pipeline with the NTRUencrypt public key generation, when converting the input string to an integer with iteration, the program will somehow add some unnecessary '.'s, causing an stoi() error... This is under investigation and should be fixed tommorow. :) If anyone has any idea's as to what could be happening, please comment.
Fixed by doing stoi(privateKey.substr(indexPosition[i] + 1, indexPosition[i + 1] - indexPosition[i] - 1)) inside the for loops for f and g polynomials. The public key generator function now works properly.
There is currently an issue in the development pipeline with the NTRUencrypt public key generation, when converting the input string to an integer with iteration, the program will somehow add some unnecessary '.'s, causing an stoi() error... This is under investigation and should be fixed tommorow. :) If anyone has any idea's as to what could be happening, please comment.