diff --git a/sll/trunk/cypher.cc b/sll/trunk/cypher.cc index 01485946e13cf3d7666353a9ccfe1d7b71a10f29..b9aa4e2c2d77056e7322883152556aaf5e23d3ae 100644 --- a/sll/trunk/cypher.cc +++ b/sll/trunk/cypher.cc @@ -52,7 +52,7 @@ string Cypher::sha1_64(const char *data, size_t size) { BIO_get_mem_ptr(b64, &bptr); if (bptr->length > 0) - ret.insert(0, bptr->data, bptr->length); + ret.insert(0, bptr->data, bptr->length - 1); else throw Error(ERR_CYPHER, "Unable to compute sha1_64");