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 booleanisSSL(TlsCryptoParameters cryptoParams) static booleanisTLSv10(TlsCryptoParameters cryptoParams) static booleanisTLSv10(ProtocolVersion version) static booleanisTLSv11(TlsCryptoParameters cryptoParams) static booleanisTLSv11(ProtocolVersion version) static booleanisTLSv12(TlsCryptoParameters cryptoParams) static booleanisTLSv12(ProtocolVersion version) static booleanisTLSv13(TlsCryptoParameters cryptoParams) static booleanisTLSv13(ProtocolVersion version) static TlsSecretPRF(TlsCryptoParameters cryptoParams, TlsSecret secret, String asciiLabel, byte[] seed, int length) static TlsSecretPRF(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)
-