public class TlsECCUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.Integer |
EXT_ec_point_formats |
static java.lang.Integer |
EXT_elliptic_curves |
Constructor and Description |
---|
TlsECCUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addSupportedEllipticCurvesExtension(java.util.Hashtable extensions,
int[] namedCurves) |
static void |
addSupportedPointFormatsExtension(java.util.Hashtable extensions,
short[] ecPointFormats) |
static void |
checkActualFormat(short[] localECPointFormats,
short actualFormat) |
static void |
checkPointEncoding(short[] localECPointFormats,
int namedCurve,
byte[] encoding) |
static boolean |
containsECCipherSuites(int[] cipherSuites) |
static byte[] |
createSupportedEllipticCurvesExtension(int[] namedCurves) |
static byte[] |
createSupportedPointFormatsExtension(short[] ecPointFormats) |
static short |
getActualFormat(int namedCurve,
byte[] encoding) |
static short |
getCompressionFormat(int namedCurve) |
static int |
getMinimumCurveBits(int cipherSuite) |
static int[] |
getSupportedEllipticCurvesExtension(java.util.Hashtable extensions) |
static short[] |
getSupportedPointFormatsExtension(java.util.Hashtable extensions) |
static boolean |
isCompressionPreferred(short[] peerECPointFormats,
int namedCurve) |
static boolean |
isCompressionPreferred(short[] peerECPointFormats,
short compressionFormat) |
static boolean |
isECCipherSuite(int cipherSuite) |
static TlsECConfig |
readECConfig(short[] peerECPointFormats,
java.io.InputStream input) |
static int[] |
readSupportedEllipticCurvesExtension(byte[] extensionData) |
static short[] |
readSupportedPointFormatsExtension(byte[] extensionData) |
static TlsECConfig |
receiveECConfig(TlsECConfigVerifier ecConfigVerifier,
short[] peerECPointFormats,
java.io.InputStream input) |
static void |
writeECConfig(TlsECConfig ecConfig,
java.io.OutputStream output) |
static void |
writeNamedECParameters(int namedCurve,
java.io.OutputStream output) |
public static final java.lang.Integer EXT_elliptic_curves
public static final java.lang.Integer EXT_ec_point_formats
public static void addSupportedEllipticCurvesExtension(java.util.Hashtable extensions, int[] namedCurves) throws java.io.IOException
java.io.IOException
public static void addSupportedPointFormatsExtension(java.util.Hashtable extensions, short[] ecPointFormats) throws java.io.IOException
java.io.IOException
public static int[] getSupportedEllipticCurvesExtension(java.util.Hashtable extensions) throws java.io.IOException
java.io.IOException
public static short[] getSupportedPointFormatsExtension(java.util.Hashtable extensions) throws java.io.IOException
java.io.IOException
public static byte[] createSupportedEllipticCurvesExtension(int[] namedCurves) throws java.io.IOException
java.io.IOException
public static byte[] createSupportedPointFormatsExtension(short[] ecPointFormats) throws java.io.IOException
java.io.IOException
public static int[] readSupportedEllipticCurvesExtension(byte[] extensionData) throws java.io.IOException
java.io.IOException
public static short[] readSupportedPointFormatsExtension(byte[] extensionData) throws java.io.IOException
java.io.IOException
public static boolean containsECCipherSuites(int[] cipherSuites)
public static int getMinimumCurveBits(int cipherSuite)
public static boolean isECCipherSuite(int cipherSuite)
public static short getCompressionFormat(int namedCurve) throws java.io.IOException
java.io.IOException
public static boolean isCompressionPreferred(short[] peerECPointFormats, int namedCurve) throws java.io.IOException
java.io.IOException
public static boolean isCompressionPreferred(short[] peerECPointFormats, short compressionFormat)
public static void checkPointEncoding(short[] localECPointFormats, int namedCurve, byte[] encoding) throws java.io.IOException
java.io.IOException
public static void checkActualFormat(short[] localECPointFormats, short actualFormat) throws java.io.IOException
java.io.IOException
public static short getActualFormat(int namedCurve, byte[] encoding) throws java.io.IOException
java.io.IOException
public static TlsECConfig readECConfig(short[] peerECPointFormats, java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static TlsECConfig receiveECConfig(TlsECConfigVerifier ecConfigVerifier, short[] peerECPointFormats, java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static void writeECConfig(TlsECConfig ecConfig, java.io.OutputStream output) throws java.io.IOException
java.io.IOException
public static void writeNamedECParameters(int namedCurve, java.io.OutputStream output) throws java.io.IOException
java.io.IOException