scsh-hackers
[Top] [All Lists]

Re: [Scsh-hackers] md5 for scsh

To: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Subject: Re: [Scsh-hackers] md5 for scsh
From: Michel Schinz <Michel.Schinz@epfl.ch>
Date: Mon Jun 24 08:00:01 2002
Cc: scsh-hackers <scsh-hackers@lists.sourceforge.net>
List-id: Discussion among the implementors <scsh-hackers.lists.sourceforge.net>
Sender: scsh-hackers-admin@lists.sourceforge.net
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.


<Prev in Thread] Current Thread [Next in Thread>