I have some code that could take care of one of the document limitations: https://github.com/clach04/chi_c/blob/9d53096ede3d52e3e9c85fa962b9950758df8572/src/chi_crypt.c#L55
I don't know how easy it would be to integrate (without reading the code); in theory, it should be straightforward for single-file implementation.
License-wise, you can adopt this code without any incompatibility.
I have some code that could take care of one of the document limitations: https://github.com/clach04/chi_c/blob/9d53096ede3d52e3e9c85fa962b9950758df8572/src/chi_crypt.c#L55
I don't know how easy it would be to integrate (without reading the code); in theory, it should be straightforward for single-file implementation.
License-wise, you can adopt this code without any incompatibility.