Make CALCULATE-DIGEST work for all CL implementations.