|
Boost : |
From: Daryle Walker (darylew_at_[hidden])
Date: 2001-11-30 19:23:10
It seems that no one noticed that I put up the "coding.zip" library in the
vault a week ago. It contains a class and a function for doing Adler-32
coding, which is similar to the CRC library I did at this year's start.
I want to add a similar class that works the MD5 standard. But there's an
interface problem. CRC and Adler-32 can process bytes, and the user can
check the checksum of what has been processed so far. Unfortunately, MD5
requires a finalization step before getting the checksum. I could use an
interface like CRC, and just add a finalization method to a MD5 class.
However, this will add a state so I can make sure that all byte processing
occurs before finalization and the checksum calculation happens after
finalization. How should I have the MD5 (class) interface?
-- Daryle Walker Mac, Internet, and Video Game Junkie darylew AT mac DOT com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk