public static enum ECCurves.ECPointCompression extends java.lang.Enum<ECCurves.ECPointCompression>
ECPoint representation compression indicators| Enum Constant and Description |
|---|
UNCOMPRESSED |
VARIANT2 |
VARIANT3 |
| Modifier and Type | Field and Description |
|---|---|
private byte |
indicatorValue |
static java.util.Set<ECCurves.ECPointCompression> |
VALUES |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
ecPointToOctetString(java.lang.String curveName,
java.security.spec.ECPoint p) |
static ECCurves.ECPointCompression |
fromIndicatorValue(int value) |
byte |
getIndicatorValue() |
abstract java.security.spec.ECPoint |
octetStringToEcPoint(byte[] octets,
int startIndex,
int len) |
static ECCurves.ECPointCompression |
valueOf(java.lang.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(java.io.OutputStream s,
java.lang.String n,
java.math.BigInteger v,
int numElements) |
void |
writeECPoint(java.io.OutputStream s,
java.lang.String curveName,
java.security.spec.ECPoint p) |
public static final ECCurves.ECPointCompression VARIANT2
public static final ECCurves.ECPointCompression VARIANT3
public static final ECCurves.ECPointCompression UNCOMPRESSED
public static final java.util.Set<ECCurves.ECPointCompression> VALUES
private final byte indicatorValue
public static ECCurves.ECPointCompression[] values()
for (ECCurves.ECPointCompression c : ECCurves.ECPointCompression.values()) System.out.println(c);
public static ECCurves.ECPointCompression valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic final byte getIndicatorValue()
public abstract java.security.spec.ECPoint octetStringToEcPoint(byte[] octets,
int startIndex,
int len)
public byte[] ecPointToOctetString(java.lang.String curveName,
java.security.spec.ECPoint p)
public void writeECPoint(java.io.OutputStream s,
java.lang.String curveName,
java.security.spec.ECPoint p)
throws java.io.IOException
java.io.IOExceptionprotected void writeCoordinate(java.io.OutputStream s,
java.lang.String n,
java.math.BigInteger v,
int numElements)
throws java.io.IOException
java.io.IOExceptionpublic static ECCurves.ECPointCompression fromIndicatorValue(int value)