[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gc_hash_buffer
From: |
Bruno Haible |
Subject: |
Re: gc_hash_buffer |
Date: |
Tue, 11 Oct 2005 21:12:28 +0200 |
User-agent: |
KMail/1.5 |
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.
Bruno