This commit is contained in:
TheLuda 2008-10-15 18:24:59 +02:00
parent 9116f0286b
commit dd6df37c14
8 changed files with 17 additions and 17 deletions

View file

@ -173,7 +173,7 @@ uint8 *BigNumber::AsByteArray(int minSize)
// If we need more bytes than length of BigNumber set the rest to 0
if (length > GetNumBytes())
memset((void*)_array, 0, length);
BN_bn2bin(_bn, (unsigned char *)_array);
std::reverse(_array, _array + length);