* the license.
*
* @return the digest as a byte array.
*/
public byte[] calculatePublicKeyRingDigest() {
final SHA512Digest dig = new SHA512Digest();
dig.reset();
dig.update(publicKeyRing, 0, publicKeyRing.length);
final byte[] digest = new byte[dig.getDigestSize()];
dig.doFinal(digest, 0);
return digest;
}