Package org.bouncycastle.tls
Class TlsECCUtils
- java.lang.Object
-
- org.bouncycastle.tls.TlsECCUtils
-
public class TlsECCUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Integer
EXT_ec_point_formats
Deprecated.UseTlsExtensionsUtils.EXT_ec_point_formats
instead.
-
Constructor Summary
Constructors Constructor Description TlsECCUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
addSupportedPointFormatsExtension(java.util.Hashtable extensions, short[] ecPointFormats)
Deprecated.static void
checkPointEncoding(int namedGroup, byte[] encoding)
static TlsECConfig
createNamedECConfig(TlsContext context, int namedGroup)
static byte[]
createSupportedPointFormatsExtension(short[] ecPointFormats)
Deprecated.Useinstead.
static int
getMinimumCurveBits(int cipherSuite)
static short[]
getSupportedPointFormatsExtension(java.util.Hashtable extensions)
Deprecated.Useinstead.
static boolean
isECCCipherSuite(int cipherSuite)
static short[]
readSupportedPointFormatsExtension(byte[] extensionData)
Deprecated.Useinstead.
static TlsECConfig
receiveECDHConfig(TlsContext context, java.io.InputStream input)
static void
writeECConfig(TlsECConfig ecConfig, java.io.OutputStream output)
static void
writeNamedECParameters(int namedGroup, java.io.OutputStream output)
-
-
-
Field Detail
-
EXT_ec_point_formats
public static final java.lang.Integer EXT_ec_point_formats
Deprecated.UseTlsExtensionsUtils.EXT_ec_point_formats
instead.
-
-
Method Detail
-
addSupportedPointFormatsExtension
public static void addSupportedPointFormatsExtension(java.util.Hashtable extensions, short[] ecPointFormats) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
getSupportedPointFormatsExtension
public static short[] getSupportedPointFormatsExtension(java.util.Hashtable extensions) throws java.io.IOException
Deprecated.Useinstead.
- Throws:
java.io.IOException
-
createSupportedPointFormatsExtension
public static byte[] createSupportedPointFormatsExtension(short[] ecPointFormats) throws java.io.IOException
Deprecated.Useinstead.
- Throws:
java.io.IOException
-
readSupportedPointFormatsExtension
public static short[] readSupportedPointFormatsExtension(byte[] extensionData) throws java.io.IOException
Deprecated.Useinstead.
- Throws:
java.io.IOException
-
createNamedECConfig
public static TlsECConfig createNamedECConfig(TlsContext context, int namedGroup) throws java.io.IOException
- Throws:
java.io.IOException
-
getMinimumCurveBits
public static int getMinimumCurveBits(int cipherSuite)
-
isECCCipherSuite
public static boolean isECCCipherSuite(int cipherSuite)
-
checkPointEncoding
public static void checkPointEncoding(int namedGroup, byte[] encoding) throws java.io.IOException
- Throws:
java.io.IOException
-
receiveECDHConfig
public static TlsECConfig receiveECDHConfig(TlsContext context, java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
writeECConfig
public static void writeECConfig(TlsECConfig ecConfig, java.io.OutputStream output) throws java.io.IOException
- Throws:
java.io.IOException
-
writeNamedECParameters
public static void writeNamedECParameters(int namedGroup, java.io.OutputStream output) throws java.io.IOException
- Throws:
java.io.IOException
-
-