Class PublicKeyValidator
java.lang.Object
io.getlime.security.powerauth.crypto.lib.util.PublicKeyValidator
Public key validations which complement validations in Bouncy Castle library.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(org.bouncycastle.math.ec.ECCurve curve, org.bouncycastle.math.ec.ECPoint point) Validate the public key: check that the EC point is not the point at infinity check that point order matches the order defined in EC curve
-
Constructor Details
-
PublicKeyValidator
public PublicKeyValidator()
-
-
Method Details
-
validate
public void validate(org.bouncycastle.math.ec.ECCurve curve, org.bouncycastle.math.ec.ECPoint point) throws GenericCryptoException Validate the public key:- check that the EC point is not the point at infinity
- check that point order matches the order defined in EC curve
- Parameters:
curve- EC curve.point- EC point.- Throws:
GenericCryptoException- In case the EC point validation fails.
-