| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPointOnCurve(BigInteger x,
BigInteger y,
ECParameterSpec ecParameterSpec)
Checks if the specified (ephemeral) public key is on the given
curve.
|
static boolean |
isPointOnCurve(ECPublicKey publicKey,
ECParameterSpec ecParameterSpec)
Checks if the specified (ephemeral) public key is on the given
curve.
|
static boolean |
isPointOnCurve(ECPublicKey publicKey,
ECPrivateKey privateKey)
Checks if the specified (ephemeral) public key is on the curve of
the private key.
|
public static boolean isPointOnCurve(ECPublicKey publicKey, ECPrivateKey privateKey)
See https://www.cs.bris.ac.uk/Research/CryptographySecurity/RWC/2017/nguyen.quan.pdf
publicKey - The public EC key. Must not be null.privateKey - The private EC key. Must not be null.true if public key passed the curve check.public static boolean isPointOnCurve(ECPublicKey publicKey, ECParameterSpec ecParameterSpec)
See https://www.cs.bris.ac.uk/Research/CryptographySecurity/RWC/2017/nguyen.quan.pdf
publicKey - The public EC key. Must not be null.ecParameterSpec - The EC spec. Must not be null.true if public key passed the curve check.public static boolean isPointOnCurve(BigInteger x, BigInteger y, ECParameterSpec ecParameterSpec)
See https://www.cs.bris.ac.uk/Research/CryptographySecurity/RWC/2017/nguyen.quan.pdf
x - The public EC x coordinate. Must not be
null.y - The public EC y coordinate. Must not be
null.ecParameterSpec - The EC spec. Must not be null.true if public key passed the curve check.Copyright © 2019 Connect2id Ltd.. All rights reserved.