apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: SHA1 update v.s. update_binary
Date Thu, 04 Aug 2005 13:41:23 GMT
At 02:10 AM 8/4/2005, Joe Orton wrote:
>On Thu, Aug 04, 2005 at 01:34:04AM -0500, William Rowe wrote:
>> I can't quite figure the difference between apr_sha1_update and
>> ...update_binary.  My first guess was that _update took a null term
>> string, while update_binary would be a counted byte array.  But both
>> functions take an inputLen.
>If you look at the implementations, the key difference seems to be that 
>the _update interface performs EBCDIC->ASCII translation on the input.

It strikes me that the sha1 and md5 implementations are inconsistent,
it seems that in apr 2.0 we should probably provide the same xlate
handle to a given sha1_ctx_t as we have done for md5_ctx_t.  I'm not
sure we can make such a transition before an apr 2.

I see that the update/update_binary semantics I expected only apply
to the ap_ functions, which can probably, mostly, 'go away'.


View raw message