SHA is the name most people would guess. The documentation says it is SHA1.
I would guess SHA1 as I would guess MD5 and not MD...
/ Mirar
Previous text:
2004-02-04 21:21: Subject: Crypto naming
I think Crypto.SHA ought to be renamed Crypto.SHA1.
SHA is the name most people would guess. The documentation says it is SHA1.
The name Crypto.Proxy is somewhat strange (it's actually a buffer).
Yes, I tried Nettle.Buffer first, but it doesn't work (some sort of name collision I think). But it is of course simple to rename it in Crypto.pmod so that we get Crypto.Buffer.
Perhaps it should be renamed, and perhaps it would make sense with a feed/drain interface.
Add it if you like.
Also the pad method looks a little strange,
That code is copied from _Crypto.crypto. It does look fishy...
/ Martin Nilsson (saturator)