More bugfixes.

This commit is contained in:
JoelKatz
2011-12-15 12:53:56 -08:00
parent c7f890ab47
commit 56484476a9
3 changed files with 7 additions and 0 deletions

View File

@@ -134,6 +134,7 @@ uint160 Serializer::getRIPEMD160(int size) const
uint160 ret;
if((size<0)||(size>mData.size())) size=mData.size();
RIPEMD160(&(mData.front()), size, (unsigned char *) &ret);
return ret;
}
uint256 Serializer::getSHA256(int size) const
@@ -141,6 +142,7 @@ uint256 Serializer::getSHA256(int size) const
uint256 ret;
if((size<0)||(size>mData.size())) size=mData.size();
SHA256(&(mData.front()), size, (unsigned char *) &ret);
return ret;
}
uint256 Serializer::getSHA512Half(int size) const