thevalencyproject / valency-core

Key modular components used to build the Valency Network
https://valency.dev
GNU Lesser General Public License v2.1
4 stars 0 forks source link

NTRUencrypt Public Key Generation #3

Closed isaacljubic closed 1 year ago

isaacljubic commented 1 year ago

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.

isaacljubic commented 1 year ago

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.