Package com.subgraph.orchid.crypto

Examples of com.subgraph.orchid.crypto.TorPublicKey.verifySignature()


      return SignatureStatus.STATUS_FAILED;
    }
   
    final TorPublicKey signingKey = certificate.getAuthoritySigningKey();
    final HexDigest d = (signature.useSha256()) ? signingHash256 : signingHash;
    if(!signingKey.verifySignature(signature.getSignature(), d)) {
      logger.warning("Signature failed on consensus for signing key: "+ signature.getSigningKeyDigest());
      return SignatureStatus.STATUS_FAILED;
    }
    return SignatureStatus.STATUS_VERIFIED;
  }
View Full Code Here


  }
 
  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)) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.