Package org.bouncycastle.tls.crypto.impl
Class TlsImplUtils
- java.lang.Object
-
- org.bouncycastle.tls.crypto.impl.TlsImplUtils
-
public class TlsImplUtils extends java.lang.Object
Useful utility methods.
-
-
Constructor Summary
Constructors Constructor Description TlsImplUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
calculateKeyBlock(TlsCryptoParameters cryptoParams, int length)
static boolean
isTLSv11(TlsCryptoParameters cryptoParams)
static boolean
isTLSv11(ProtocolVersion version)
static boolean
isTLSv12(TlsCryptoParameters cryptoParams)
static boolean
isTLSv12(ProtocolVersion version)
static boolean
isTLSv13(TlsCryptoParameters cryptoParams)
static boolean
isTLSv13(ProtocolVersion version)
static TlsSecret
PRF(TlsCryptoParameters cryptoParams, TlsSecret secret, java.lang.String asciiLabel, byte[] seed, int length)
-
-
-
Method Detail
-
isTLSv11
public static boolean isTLSv11(ProtocolVersion version)
-
isTLSv11
public static boolean isTLSv11(TlsCryptoParameters cryptoParams)
-
isTLSv12
public static boolean isTLSv12(ProtocolVersion version)
-
isTLSv12
public static boolean isTLSv12(TlsCryptoParameters cryptoParams)
-
isTLSv13
public static boolean isTLSv13(ProtocolVersion version)
-
isTLSv13
public static boolean isTLSv13(TlsCryptoParameters cryptoParams)
-
calculateKeyBlock
public static byte[] calculateKeyBlock(TlsCryptoParameters cryptoParams, int length)
-
PRF
public static TlsSecret PRF(TlsCryptoParameters cryptoParams, TlsSecret secret, java.lang.String asciiLabel, byte[] seed, int length)
-
-