Get intermediate MessageDigest state?

Bernd Eckenfels ecki at
Fri May 23 00:34:22 UTC 2014


for some applications I need to safe and resume the state of a
MessageDigest implementation (SHA1 and others). I wonder if there has
been any discussion about exporting states from Digesters or Cipher

For MD5 there is a implementation which supports this, but of course I
would prefer JCE provider (especially if I can get a speed up with

I can imagine first a getter/setter for the state, but also (with
help of clone) using the digest() method could be possible (at least
for some digest algorithms).


More information about the security-dev mailing list