Class Curve
- java.lang.Object
-
- org.signal.libsignal.protocol.ecc.Curve
-
public class Curve extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static intDJB_TYPE
-
Constructor Summary
Constructors Constructor Description Curve()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]calculateAgreement(ECPublicKey publicKey, ECPrivateKey privateKey)static byte[]calculateSignature(ECPrivateKey signingKey, byte[] message)static ECPublicKeydecodePoint(byte[] bytes, int offset)static ECPrivateKeydecodePrivatePoint(byte[] bytes)static ECKeyPairgenerateKeyPair()static booleanverifySignature(ECPublicKey signingKey, byte[] message, byte[] signature)
-
-
-
Field Detail
-
DJB_TYPE
public static final int DJB_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
generateKeyPair
public static ECKeyPair generateKeyPair()
-
decodePoint
public static ECPublicKey decodePoint(byte[] bytes, int offset) throws InvalidKeyException
- Throws:
InvalidKeyException
-
decodePrivatePoint
public static ECPrivateKey decodePrivatePoint(byte[] bytes)
-
calculateAgreement
public static byte[] calculateAgreement(ECPublicKey publicKey, ECPrivateKey privateKey) throws InvalidKeyException
- Throws:
InvalidKeyException
-
verifySignature
public static boolean verifySignature(ECPublicKey signingKey, byte[] message, byte[] signature) throws InvalidKeyException
- Throws:
InvalidKeyException
-
calculateSignature
public static byte[] calculateSignature(ECPrivateKey signingKey, byte[] message) throws InvalidKeyException
- Throws:
InvalidKeyException
-
-