Boost logo

Boost :

Subject: Re: [boost] [xint] Utility question, how to implement...
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2011-03-05 15:00:51


On 3/5/2011 12:00 PM, Chad Nelson wrote:
> On Fri, 04 Mar 2011 10:10:36 -0600
> Rene Rivera<grafikrobot_at_[hidden]> wrote:
>
>> Unfortunately I don't have time to do a review of your library (even
>> a quick one). But I do have one question... In my general code library
>> I have an implementation of a one-way-accumulator based on the
>> facilities provided by the Botan library. It's an algorithmically
>> efficient implementation using Barrett reducers for modulo
>> exponentiation with small bases and large exponents. My question is:
>> How would I go about implementing the equivalent in your library?
>>
>> NOTE: I can post my code if need be to make this a clearer question.
>
> I'm afraid you'll have to, as I can't tell exactly what it does from
> your description. I'll be happy to try to port it to XInt.

OK, attached is the source code for my class that implements the algo.
Note, it's not open-source code by any means. So other reading take that
into consideration.

PS. Also excuse the code itself.. It's really old and doesn't follow any
of my more recent library-centric programming practices.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org (msn) - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim,yahoo,skype,efnet,gmail





Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk