Package org.bouncycastle.tls
Class TlsECCUtils
- java.lang.Object
-
- org.bouncycastle.tls.TlsECCUtils
-
public class TlsECCUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TlsECCUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkPointEncoding(int namedGroup, byte[] encoding)
static TlsECConfig
createNamedECConfig(TlsContext context, int namedGroup)
static int
getMinimumCurveBits(int cipherSuite)
static boolean
isECCCipherSuite(int cipherSuite)
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)
-
-
-
Method Detail
-
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
-
-