Get intermediate MessageDigest state?

Bernd Eckenfels ecki at zusammenkunft.net
Fri May 23 02:43:06 UTC 2014


Am Thu, 22 May 2014 20:49:26 -0500
schrieb "David M. Lloyd" <david.lloyd at redhat.com>:
> Using MessageDigest.clone() is the usual approach.  Theoretically 
> though, some providers won't be cloneable; the only practical
> recourse in this case is to replay the whole of the input,
> unfortunately.

Yes, I have the need to persist the partial state in a database. So I
would need to get the actual state bytes. 

In some cases I can use the clone() and its also not a big problem to
request providers which are known to be Cloneable.

Greetings
Bernd



More information about the security-dev mailing list