Isn't it better to create an MD5.pmod file then?
/ Martin Nilsson (har bott i google)
Previous text:
2003-03-20 18:23: Subject: nettle-1.7
The point is that I want Crypto.MD5 to be an object (and a singleton), not a class. So that you can use
Crypto.MD5.digest_size(); Crypto.MD5.hash("foo");
or
a = Crypto.MD5; ... a->name(); ... a->digest_size();
An instance of (a class inheriting) HashAlgorithm represents the algorithm itself, without any hashing state.
/ Niels Möller ()