public class TlsECCUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.Integer |
EXT_ec_point_formats |
Constructor and Description |
---|
TlsECCUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addSupportedPointFormatsExtension(java.util.Hashtable extensions,
short[] ecPointFormats) |
static void |
checkActualFormat(short[] localECPointFormats,
short actualFormat) |
static void |
checkPointEncoding(short[] localECPointFormats,
int namedGroup,
byte[] encoding) |
static boolean |
containsECCipherSuites(int[] cipherSuites) |
static byte[] |
createSupportedPointFormatsExtension(short[] ecPointFormats) |
static short |
getActualFormat(int namedGroup,
byte[] encoding) |
static short |
getCompressionFormat(int namedGroup) |
static int |
getMinimumCurveBits(int cipherSuite) |
static short[] |
getSupportedPointFormatsExtension(java.util.Hashtable extensions) |
static boolean |
isCompressionPreferred(short[] peerECPointFormats,
int namedGroup) |
static boolean |
isCompressionPreferred(short[] peerECPointFormats,
short compressionFormat) |
static boolean |
isECCipherSuite(int cipherSuite) |
static TlsECConfig |
readECConfig(short[] peerECPointFormats,
java.io.InputStream input) |
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 namedGroup,
java.io.OutputStream output) |
public static void addSupportedPointFormatsExtension(java.util.Hashtable extensions, short[] ecPointFormats) 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[] createSupportedPointFormatsExtension(short[] ecPointFormats) 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 namedGroup) throws java.io.IOException
java.io.IOException
public static boolean isCompressionPreferred(short[] peerECPointFormats, int namedGroup) throws java.io.IOException
java.io.IOException
public static boolean isCompressionPreferred(short[] peerECPointFormats, short compressionFormat)
public static void checkPointEncoding(short[] localECPointFormats, int namedGroup, 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 namedGroup, 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 namedGroup, java.io.OutputStream output) throws java.io.IOException
java.io.IOException