Reworked digest-md5 according to new API