Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de> writes:
[...]
> Michel> For example, your "md5-digest-for-file" function would be
> Michel> transformed to something like:
>
> Michel> (digest-for-file algorithm fname/port/fd)
>
> Michel> where "algorithm" would be a symbol among "MD5", "FNV", etc.
> Michel> (or some object returned by a function to create an
> Michel> encoder).
>
> Let's return to this when we have more then one algorithm.
Sure. It would be nice, though, if the current interface was built in
order to allow for different algorithms in the future.
> Michel> For low-level functions this might not be a good idea since
> Michel> they might depend heavily on their algorithm, but I think
> Michel> that for high-level functions it makes sense.
>
> Maybe some sort of init-update-digest sequence?
Yes, that sounds good. I'm far from being a digest specialist, but I
can indeed imagine that such an interface is general enough.
Michel.
|