Christian Biere wrote: > Alex Bennee wrote: > > I'm using the base32_sha1 function to convert the ASCI string into a > > binary urn. As far as I can tell it should work the same as it does for > > PARQ, so why is it failing. > I've modified base32_sha1() to not tolerate trailing data. Your > code doesn't verify whether the SHA1 was valid.
Oh well, the check in base32_sha1() was actually wrong. I've accidently used SHA1_BASE32_SIZE instead of SHA1_RAW_SIZE. Fortunately, it's only used by PARQ so far, thus it caused little to no harm. -- Christian
pgpKwgy3PEt83.pgp
Description: PGP signature
