2009/5/8 Wei Dai <[email protected]>:
>
> I don't think that's it. 16 is the number of word32, and should be correct.
> One problem is here:
>
[...]
> Note that m_state.m_ptr = 0x0, which means m_state hasn't been constructed
> when the segfault happened.

Ahh, thanks.

[...]
> I see this:
>
> key = (const byte *) 0xb7f70980 "Z\213\f$\211\004$\213D$\004Â\f"
>
> This variable isn't in my copy of randpool.cpp. Is it something you added to
> help debugging?

Yes, sorry I didn't mention this, but I modified randpool.cpp:

void RandomPool::IncorporateEntropy(const byte *input, size_t length)
{
        SHA256 hash;
        const byte *key = m_key;
        hash.Update(key, 32);
        hash.Update(input, length);
        hash.Final(m_key);
        m_keySet = false;
}

because it first seemed that the segfault happened in the cast operator.

> If you can't figure this out, please send me instructions to reproduce the
> bug.

Thanks, I will try some more now that I know what to watch.  But just
in case; are you by any chance able to run on a Debian / Ubuntu
system?  Because if you are, I could upload some unoptimised packages
with debugging symbols included which makes it easier to follow what
is going on.

Cheers,
-- 
                                                    Jens Peter Secher.
_DD6A 05B0 174E BFB2 D4D9 B52E 0EE5 978A FE63 E8A1 jpsecher gmail com_.
A. Because it breaks the logical sequence of discussion.
Q. Why is top posting bad?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to