20 ноября 2009 г. 2:25 пользователь Jeffrey Walton <[email protected]>написал:
> Hi Александр,
>
> > publicKey.Initialize(...)
> What is the result of publicKey.Validate(3)?
>
Hm. I can't understand how to call Validate.
call exact as your wrote Validate(3) takes compiler errors,
next code throws an exception and tells that NullRNG not allowed;
#ifdef OS_RNG_AVAILABLE
//AutoSeededX917RNG<AES> rng;
#else
// this is used to allow this function to compile on platforms
that don't have auto-seeded RNGs
//RandomNumberGenerator &rng(NullRNG());
#endif
if (!publicKey.Validate(rng,3)) return false;
and next code falls into infinite loop
std::string tmpStr =
"\x14\xbd\xdd\x28\xc9\x83\x35\x19\x23\x80\xe8\xe5\x49\xb1\x58\x2a"
"\x8b\x40\xb4\x48\x6d\x03\xa6\xa5\x31\x1f\x1f\xd5\xf0\xa1\x80\xe4"
"\x17\x53\x03\x29\xa9\x34\x90\x74\xb1\x52\x13\x54\x29\x08\x24\x52"
"\x62\x51";
ByteQueue bq;
bq.Put((const byte *)tmpStr.data(), tmpStr.size());
FixedRNG rng(bq);
> > signaturePartR+signaturePartS+message...
> SIGNATURE_AT_BEGIN is correct for the code below. What is
> (signaturePartR+signaturePartS).length()? It must be exactly 40 bytes.
>
Yes, it is exact 40 bytes
--
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.