[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding sha256 and sha512 to C?
From: |
Stefan Monnier |
Subject: |
Re: Adding sha256 and sha512 to C? |
Date: |
Mon, 30 May 2011 01:06:10 -0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
>> > The gnulib crypto library also has sha256 and sha512
>> > functions; is there any objection to adding those as well?
>> Sounds good, but rather than continue to add crypto functions
>> wouldn't it be better to have a single function parameterized by the
>> algorithm name?
> I agree with Paul: the API he proposes makes much more sense.
I'm not sue the CODING-SYSTEM argument is a good idea. Other than that,
I wouldn't object, although really I don't see the advantage either.
I'd argue you could define:
(defalias 'crypto-hash-function #'apply)
and still call (crypto-hash-function 'md5 object start end).
Stefan