public static enum ECCurves.ECPointCompression extends Enum<ECCurves.ECPointCompression>
ECPoint
representation compression indicatorsEnum Constant and Description |
---|
UNCOMPRESSED |
VARIANT2 |
VARIANT3 |
Modifier and Type | Field and Description |
---|---|
static Set<ECCurves.ECPointCompression> |
VALUES |
Modifier and Type | Method and Description |
---|---|
byte[] |
ecPointToOctetString(String curveName,
ECPoint p) |
static ECCurves.ECPointCompression |
fromIndicatorValue(int value) |
byte |
getIndicatorValue() |
abstract ECPoint |
octetStringToEcPoint(byte[] octets,
int startIndex,
int len) |
static ECCurves.ECPointCompression |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ECCurves.ECPointCompression[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
protected void |
writeCoordinate(OutputStream s,
String n,
BigInteger v,
int numElements) |
void |
writeECPoint(OutputStream s,
String curveName,
ECPoint p) |
public static final ECCurves.ECPointCompression VARIANT2
public static final ECCurves.ECPointCompression VARIANT3
public static final ECCurves.ECPointCompression UNCOMPRESSED
public static final Set<ECCurves.ECPointCompression> VALUES
public static ECCurves.ECPointCompression[] values()
for (ECCurves.ECPointCompression c : ECCurves.ECPointCompression.values()) System.out.println(c);
public static ECCurves.ECPointCompression valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final byte getIndicatorValue()
public abstract ECPoint octetStringToEcPoint(byte[] octets, int startIndex, int len)
public void writeECPoint(OutputStream s, String curveName, ECPoint p) throws IOException
IOException
protected void writeCoordinate(OutputStream s, String n, BigInteger v, int numElements) throws IOException
IOException
public static ECCurves.ECPointCompression fromIndicatorValue(int value)
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.