This is the core libsrs2 against which you should be linking your MTA. Please submit patches via github.
Check the code out from github:
The Perl implementation is also available from CPAN. This is the reference implementation and any other implementation MUST return the same results as this Perl implementation.