if ((!detached) && (verified)) {
byte[] contentDigest = signerInformation.getContentDigest();
AlgorithmIdentifier algorithmOID = signerInformation.getDigestAlgorithmID();
DigestType type = BouncyCastleSignerHelper.getDigestTypeFromOid(algorithmOID.getAlgorithm().getId());
Digester digester = new BasicDigester(type);
byte[] dataDigest = digester.digest(data);
if (!MessageDigest.isEqual(contentDigest, dataDigest)) {
verified = false;
}
}