}
private void verifyCrossSignature(TorSignature crossSignature) {
TorPublicKey identityKey = currentCertificate.getAuthorityIdentityKey();
TorPublicKey signingKey = currentCertificate.getAuthoritySigningKey();
if(!signingKey.verifySignature(crossSignature, identityKey.getFingerprint()))
throw new TorParsingException("Cross signature on certificate failed.");
}
private boolean verifyCurrentCertificate(TorSignature signature) {
if(!fieldParser.verifySignedEntity(currentCertificate.getAuthorityIdentityKey(), signature)) {