CipherSuite

data class CipherSuite

Represents a TLS cipher suite

Constructors

<init>

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)

Represents a TLS cipher suite

Properties

cipherTagSizeInBytes

val cipherTagSizeInBytes: Int

tag size in bytes

cipherType

val cipherType: CipherType

type of cipher to use

code

val code: Short

numeric cipher suite code

exchangeType

val exchangeType: SecretExchangeType

secret exchange type (ECDHE or RSA)

fixedIvLength

val fixedIvLength: Int

fixed input vector length in bytes

hash

val hash: HashAlgorithm

algorithm

ivLength

val ivLength: Int

input vector length in bytes

jdkCipherName

val jdkCipherName: String

for this suite that is used in JDK

keyStrength

val keyStrength: Int

in bits

keyStrengthInBytes

val keyStrengthInBytes: Int

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

macName

val macName: String

message authentication algorithm name

macStrength

val macStrength: Int

message authentication algorithm strength in bits

macStrengthInBytes

val macStrengthInBytes: Int

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

name

val name: String

cipher suite name

openSSLName

val openSSLName: String

for this suite that is used in openssl

signatureAlgorithm

val signatureAlgorithm: SignatureAlgorithm