Boost logo

Boost :

Subject: Re: [boost] Message Hashing Interface (SHA-1/256/384/512, MD4/5)
From: Nevin Liber (nevin_at_[hidden])
Date: 2010-04-05 20:01:10


On 4 April 2010 11:09, Scott McMurray <me22.ca+boost_at_[hidden]> wrote:
> 2) The hash() function is const, and copies the accumulator, then pads
> and length-appends the copied version, getting the hash from there
> instead.  That gives perhaps the nicest interface, but the extra
> copying would be somewhat expensive.

I prefer this interface. This is the same as Boost.CRC (and heck,
std::string::c_str() for that matter). If you still wish to provide a
faster but destructive one, just use another function.

-- 
 Nevin Liber  <mailto:nevin_at_[hidden]>  (847) 691-1404

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