fixed table lookup in cloneDigest() method.
@@ -176,6 +176,6 @@ public static Digest createSHAKE256()
public static Digest cloneDigest(Digest hashAlg)
{
- return ((Cloner)cloneMap.get(hashAlg)).createClone(hashAlg);
+ return ((Cloner)cloneMap.get(hashAlg.getAlgorithmName())).createClone(hashAlg);
}
}
