RIPE-MD128/160 bug fixes. Closes #675