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 ()
Previous text:
2003-03-20 18:18: Subject: nettle-1.7
What's the reason for using the extra level of indirection by using `()? Ie, when is HashAlgorithm and MD5_Algorithm used directly?
/ Martin Nilsson (har bott i google)