>>I am really worried about the negative return value being added. Existing third party callers might not be ready to handle this correctly (i.e. if they cast the return to size_t without checking). Could we instead return 0? (In all the added error returns in this PR.)
Rust fixes it.
Be sure to let us know when your equivalent Rust crypto library is available.