[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gc_hash_buffer
From: |
Simon Josefsson |
Subject: |
Re: gc_hash_buffer |
Date: |
Wed, 12 Oct 2005 02:24:06 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
Bruno Haible <address@hidden> writes:
> Simon Josefsson wrote:
>> + The required size of OUT depends on HASH, and is generally
>> + GC_<HASH>_DIGEST_SIZE. For example, for GC_MD5 the output buffer
>> + must be 16 bytes. */
>> extern int
>> gc_hash_buffer (int hash, const void *in, size_t inlen, char *out);
>
> So GC_MD5 is a valid value for HASH. If all valid values for HASH are part
> of this enum type, you could write the argument as 'Gc_hash hash' instead
> of 'int hash'. This would be clearer.
Yup, I have made this change. Thanks!