CipherSuite

data class CipherSuite(code: Short, name: String, openSSLName: String, exchangeType: SecretExchangeType, jdkCipherName: String, keyStrength: Int, fixedIvLength: Int, ivLength: Int, cipherTagSizeInBytes: Int, macName: String, macStrength: Int, hash: HashAlgorithm, signatureAlgorithm: SignatureAlgorithm, cipherType: CipherType)

Represents a TLS cipher suite

Constructors

Link copied to clipboard
fun CipherSuite(code: Short, name: String, openSSLName: String, exchangeType: SecretExchangeType, jdkCipherName: String, keyStrength: Int, fixedIvLength: Int, ivLength: Int, cipherTagSizeInBytes: Int, macName: String, macStrength: Int, hash: HashAlgorithm, signatureAlgorithm: SignatureAlgorithm, cipherType: CipherType = CipherType.GCM)

Properties

Link copied to clipboard
val cipherTagSizeInBytes: Int

tag size in bytes

Link copied to clipboard
val cipherType: CipherType

type of cipher to use

Link copied to clipboard
val code: Short

numeric cipher suite code

Link copied to clipboard
val exchangeType: SecretExchangeType

secret exchange type (ECDHE or RSA)

Link copied to clipboard
val fixedIvLength: Int

fixed input vector length in bytes

Link copied to clipboard
val hash: HashAlgorithm

algorithm

Link copied to clipboard
val ivLength: Int

input vector length in bytes

Link copied to clipboard
val jdkCipherName: String

for this suite that is used in JDK

Link copied to clipboard
val keyStrength: Int

in bits

Link copied to clipboard
val keyStrengthInBytes: Int

key strength in bytes ( = [keyStrength] / 8)

Link copied to clipboard
val macName: String

message authentication algorithm name

Link copied to clipboard
val macStrength: Int

message authentication algorithm strength in bits

Link copied to clipboard
val macStrengthInBytes: Int

message authentication algorithm strength in bytes ( = [macStrength] / 8)

Link copied to clipboard
val name: String

cipher suite name

Link copied to clipboard
val openSSLName: String

for this suite that is used in openssl

Link copied to clipboard
val signatureAlgorithm: SignatureAlgorithm