| Package | Description |
|---|---|
| com.google.crypto.tink.signature.internal | |
| com.google.crypto.tink.subtle |
| Modifier and Type | Method and Description |
|---|---|
static EllipticCurves.CurveType |
SigUtil.toCurveType(EllipticCurveType type)
Converts protobuf enum
EllipticCurveType to raw Java enum {code CurveType}. |
| Modifier and Type | Method and Description |
|---|---|
static EllipticCurves.CurveType |
EllipticCurves.CurveType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EllipticCurves.CurveType[] |
EllipticCurves.CurveType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static KeyPair |
EllipticCurves.generateKeyPair(EllipticCurves.CurveType curve)
Generates a new key pair for
curve. |
static ECParameterSpec |
EllipticCurves.getCurveSpec(EllipticCurves.CurveType curve)
Returns the ECParameterSpec for a named curve.
|
static ECPrivateKey |
EllipticCurves.getEcPrivateKey(EllipticCurves.CurveType curve,
byte[] keyValue)
Returns an
ECPrivateKey from curve type and keyValue. |
static ECPublicKey |
EllipticCurves.getEcPublicKey(EllipticCurves.CurveType curve,
byte[] x,
byte[] y)
Returns an
ECPublicKey from curve type and x and y coordinates. |
static ECPublicKey |
EllipticCurves.getEcPublicKey(EllipticCurves.CurveType curve,
EllipticCurves.PointFormatType pointFormat,
byte[] publicKey)
|
static ECPoint |
EllipticCurves.pointDecode(EllipticCurves.CurveType curveType,
EllipticCurves.PointFormatType format,
byte[] encoded)
Decodes an encoded point on an elliptic curve.
|
static byte[] |
EllipticCurves.pointEncode(EllipticCurves.CurveType curveType,
EllipticCurves.PointFormatType format,
ECPoint point)
Encodes a point on an elliptic curve.
|