Package org.bouncycastle.tls.crypto.impl
Class TlsImplUtils
java.lang.Object
org.bouncycastle.tls.crypto.impl.TlsImplUtils
Useful utility methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
calculateKeyBlock
(TlsCryptoParameters cryptoParams, int length) static boolean
isSSL
(TlsCryptoParameters cryptoParams) static boolean
isTLSv10
(TlsCryptoParameters cryptoParams) static boolean
isTLSv10
(ProtocolVersion version) 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, String asciiLabel, byte[] seed, int length) static TlsSecret
PRF
(SecurityParameters securityParameters, TlsSecret secret, String asciiLabel, byte[] seed, int length)
-
Constructor Details
-
TlsImplUtils
public TlsImplUtils()
-
-
Method Details
-
isSSL
-
isTLSv10
-
isTLSv10
-
isTLSv11
-
isTLSv11
-
isTLSv12
-
isTLSv12
-
isTLSv13
-
isTLSv13
-
calculateKeyBlock
-
PRF
public static TlsSecret PRF(SecurityParameters securityParameters, TlsSecret secret, String asciiLabel, byte[] seed, int length) -
PRF
public static TlsSecret PRF(TlsCryptoParameters cryptoParams, TlsSecret secret, String asciiLabel, byte[] seed, int length)
-