Uses of Class
org.bouncycastle.crypto.CryptoException
Packages that use CryptoException
Package
Description
-
Uses of CryptoException in org.bouncycastle.crypto
Subclasses of CryptoException in org.bouncycastle.cryptoModifier and TypeClassDescriptionclassthis exception is thrown whenever we find something we don't expect in a message.Methods in org.bouncycastle.crypto that throw CryptoExceptionModifier and TypeMethodDescriptionbyte[]Signer.generateSignature()generate a signature for the message we've been loaded with using the key we were initialised with. -
Uses of CryptoException in org.bouncycastle.crypto.agreement.jpake
Methods in org.bouncycastle.crypto.agreement.jpake that throw CryptoExceptionModifier and TypeMethodDescriptionstatic BigIntegerJPAKEUtil.calculateS(BigInteger q, byte[] password) Converts the given password to aBigIntegermod q.static BigIntegerJPAKEUtil.calculateS(BigInteger q, char[] password) Converts the given password to aBigIntegermod q.static voidJPAKEUtil.validateGa(BigInteger ga) Validates that ga is not 1.static voidJPAKEUtil.validateGx4(BigInteger gx4) Validates that g^x4 is not 1.static voidJPAKEUtil.validateMacTag(String participantId, String partnerParticipantId, BigInteger gx1, BigInteger gx2, BigInteger gx3, BigInteger gx4, BigInteger keyingMaterial, Digest digest, BigInteger partnerMacTag) Validates the MacTag received from the partner participant.static voidJPAKEUtil.validateParticipantIdsDiffer(String participantId1, String participantId2) Validates that the given participant ids are not equal.static voidJPAKEUtil.validateParticipantIdsEqual(String expectedParticipantId, String actualParticipantId) Validates that the given participant ids are equal.voidJPAKEParticipant.validateRound1PayloadReceived(JPAKERound1Payload round1PayloadReceived) Validates the payload received from the other participant during round 1.voidJPAKEParticipant.validateRound2PayloadReceived(JPAKERound2Payload round2PayloadReceived) Validates the payload received from the other participant during round 2.voidJPAKEParticipant.validateRound3PayloadReceived(JPAKERound3Payload round3PayloadReceived, BigInteger keyingMaterial) Validates the payload received from the other participant during round 3.static voidJPAKEUtil.validateZeroKnowledgeProof(BigInteger p, BigInteger q, BigInteger g, BigInteger gx, BigInteger[] zeroKnowledgeProof, String participantId, Digest digest) Validates the zero knowledge proof (generated byJPAKEUtil.calculateZeroKnowledgeProof(BigInteger, BigInteger, BigInteger, BigInteger, BigInteger, String, Digest, SecureRandom)) is correct. -
Uses of CryptoException in org.bouncycastle.crypto.agreement.srp
Methods in org.bouncycastle.crypto.agreement.srp that throw CryptoExceptionModifier and TypeMethodDescriptionSRP6Client.calculateClientEvidenceMessage()Computes the client evidence message M1 using the previously received values.SRP6Client.calculateSecret(BigInteger serverB) Generates the secret S given the server's credentialsSRP6Server.calculateSecret(BigInteger clientA) Processes the client's credentials.SRP6Server.calculateServerEvidenceMessage()Computes the server evidence message M2 using the previously verified values.SRP6Client.calculateSessionKey()Computes the final session key as a result of the SRP successful mutual authentication To be called after verifying the server evidence message M2.SRP6Server.calculateSessionKey()Computes the final session key as a result of the SRP successful mutual authentication To be called after calculating the server evidence message M2.static BigIntegerSRP6Util.validatePublicValue(BigInteger N, BigInteger val) booleanSRP6Server.verifyClientEvidenceMessage(BigInteger clientM1) Authenticates the received client evidence message M1 and saves it only if correct.booleanSRP6Client.verifyServerEvidenceMessage(BigInteger serverM2) Authenticates the server evidence message M2 received and saves it only if correct. -
Uses of CryptoException in org.bouncycastle.crypto.examples
Methods in org.bouncycastle.crypto.examples that throw CryptoException -
Uses of CryptoException in org.bouncycastle.crypto.signers
Methods in org.bouncycastle.crypto.signers that throw CryptoExceptionModifier and TypeMethodDescriptionbyte[]GenericSigner.generateSignature()Generate a signature for the message we've been loaded with using the key we were initialised with.byte[]ISO9796d2PSSSigner.generateSignature()generate a signature for the loaded message using the key we were initialised with.byte[]ISO9796d2Signer.generateSignature()generate a signature for the loaded message using the key we were initialised with.byte[]PSSSigner.generateSignature()generate a signature for the message we've been loaded with using the key we were initialised with.byte[]RSADigestSigner.generateSignature()Generate a signature for the message we've been loaded with using the key we were initialised with.byte[]SM2Signer.generateSignature()byte[]X931Signer.generateSignature()generate a signature for the loaded message using the key we were initialised with. -
Uses of CryptoException in org.bouncycastle.pqc.crypto.mldsa
Methods in org.bouncycastle.pqc.crypto.mldsa that throw CryptoExceptionModifier and TypeMethodDescriptionbyte[]HashMLDSASigner.generateSignature()byte[]MLDSASigner.generateSignature() -
Uses of CryptoException in org.bouncycastle.pqc.crypto.slhdsa
Methods in org.bouncycastle.pqc.crypto.slhdsa that throw CryptoException