[bigint] Bug: stringToBigUnsigned(std::string s)
Justin Seely <justin.seely at gmail.com>
Tue Jan 25 06:28:52 PST 2011
Hi Matt,
So I think I found what was causing the problem. In one of my functions I
was passing my BigUnsigned by value so I switched it to by reference and it
works.
Thanks for the help
On Fri, Jan 21, 2011 at 11:37 AM, Justin Seely <justin.seely at gmail.com>wrote:
> So I tried to create just a snippet of the code that produced this result
> but was unable to so here is my actual file and the input file. Just run the
> exe with the key16.txt file in the same dir. Also your files need to be in a
> folder named "bigInt". And I'm running 32-bit compiler on 64-bit machine.
> I'm probably going to start looking at it in more depth tonight after work
> so i'll let you know if I find anything.
> Thanks
>
> On Fri, Jan 21, 2011 at 11:20 AM, Matt McCutchen <matt at mattmccutchen.net>wrote:
>
>> On Fri, 2011-01-21 at 10:21 -0500, Justin Seely wrote:
>> > So I'm in the midst of creating an RSA library using your BigInteger
>> > library and I ran into a bug in the stringToBigUnsigned function. What
>> > seems to be happening is if the string is 10 or more characters long
>> > the conversion gives an incorrect conversion. Anyway I'm planning on
>> > looking into it myself over the next couple days and I'll let you know
>> > if I find a fix to it.
>>
>> Sure. Or if you send me a code snippet to reproduce the problem and
>> tell me whether you are using a 32-bit or 64-bit machine, I will take a
>> look.
>>
>> --
>> Matt
>>
>>
>
>
> --
> Ph. (647) 210-7216
> Em. justin.seely at gmail.com
>
>
--
Ph. (647) 210-7216
Em. justin.seely at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mattmccutchen.net/mailman/archives/bigint/attachments/20110125/f7afe22b/attachment.htm>
More information about the bigint
mailing list