>Let me know how it works for you. > > It's failing on everything. It looks like SvLEN(dgst) says that it's 21 bytes long, not 20 bytes. If I force it to use 20 byte digests, it works, at least for verification. Perhaps SvLEN is including a final NUL character? - Karl