Package tlslite :: Module constants :: Class CipherSuite
[hide private]
[frames] | no frames]

Class CipherSuite

source code

Numeric values of ciphersuites and ciphersuite types

Class Methods [hide private]
 
getAnonSuites(cls, settings, version=None)
Provide anonymous DH ciphersuites matching settings
source code
 
getCertSuites(cls, settings, version=None)
Return ciphers with RSA authentication matching settings
source code
 
getDheCertSuites(cls, settings, version=None)
Provide authenticated DHE ciphersuites matching settings
source code
 
getEcdhAnonSuites(cls, settings, version=None)
Provide anonymous ECDH ciphersuites matching settings
source code
 
getEcdheCertSuites(cls, settings, version=None)
Provide authenticated ECDHE ciphersuites matching settings
source code
 
getSrpAllSuites(cls, settings, version=None)
Return all SRP cipher suites matching settings
source code
 
getSrpCertSuites(cls, settings, version=None)
Return SRP cipher suites that use server certificates
source code
 
getSrpSuites(cls, settings, version=None)
Return SRP cipher suites matching settings
source code
Static Methods [hide private]
 
_filterSuites(suites, settings, version=None) source code
 
canonicalCipherName(ciphersuite)
Return the canonical name of the cipher whose number is provided.
source code
 
canonicalMacName(ciphersuite)
Return the canonical name of the MAC whose number is provided.
source code
 
filterForVersion(suites, minVersion, maxVersion)
Return a copy of suites without ciphers incompatible with version
source code
Class Variables [hide private]
  TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA = 22
  TLS_DHE_RSA_WITH_AES_128_CBC_SHA = 51
  TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 = 103
  TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 = 158
  TLS_DHE_RSA_WITH_AES_256_CBC_SHA = 57
  TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 = 107
  TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 = 159
  TLS_DHE_RSA_WITH_CHACHA20_POLY1305 = 52387
  TLS_DH_ANON_WITH_3DES_EDE_CBC_SHA = 27
  TLS_DH_ANON_WITH_AES_128_CBC_SHA = 52
  TLS_DH_ANON_WITH_AES_128_CBC_SHA256 = 108
  TLS_DH_ANON_WITH_AES_128_GCM_SHA256 = 166
  TLS_DH_ANON_WITH_AES_256_CBC_SHA = 58
  TLS_DH_ANON_WITH_AES_256_CBC_SHA256 = 109
  TLS_DH_ANON_WITH_AES_256_GCM_SHA384 = 167
  TLS_DH_ANON_WITH_RC4_128_MD5 = 24
  TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA = 49171
  TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 = 49191
  TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = 49199
  TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA = 49172
  TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 = 49192
  TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = 49200
  TLS_ECDHE_RSA_WITH_NULL_SHA = 49168
  TLS_ECDH_ANON_WITH_3DES_EDE_CBC_SHA = 49175
  TLS_ECDH_ANON_WITH_AES_128_CBC_SHA = 49176
  TLS_ECDH_ANON_WITH_AES_256_CBC_SHA = 49177
  TLS_ECDH_ANON_WITH_NULL_SHA = 49173
  TLS_ECDH_ANON_WITH_RC4_128_SHA = 49174
  TLS_EMPTY_RENEGOTIATION_INFO_SCSV = 255
  TLS_FALLBACK_SCSV = 22016
  TLS_RSA_WITH_3DES_EDE_CBC_SHA = 10
  TLS_RSA_WITH_AES_128_CBC_SHA = 47
  TLS_RSA_WITH_AES_128_CBC_SHA256 = 60
  TLS_RSA_WITH_AES_128_GCM_SHA256 = 156
  TLS_RSA_WITH_AES_256_CBC_SHA = 53
  TLS_RSA_WITH_AES_256_CBC_SHA256 = 61
  TLS_RSA_WITH_AES_256_GCM_SHA384 = 157
  TLS_RSA_WITH_NULL_MD5 = 1
  TLS_RSA_WITH_NULL_SHA = 2
  TLS_RSA_WITH_NULL_SHA256 = 59
  TLS_RSA_WITH_RC4_128_MD5 = 4
  TLS_RSA_WITH_RC4_128_SHA = 5
  TLS_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA = 49179
  TLS_SRP_SHA_RSA_WITH_AES_128_CBC_SHA = 49182
  TLS_SRP_SHA_RSA_WITH_AES_256_CBC_SHA = 49185
  TLS_SRP_SHA_WITH_3DES_EDE_CBC_SHA = 49178
  TLS_SRP_SHA_WITH_AES_128_CBC_SHA = 49181
  TLS_SRP_SHA_WITH_AES_256_CBC_SHA = 49184
  aeadSuites = [156, 158, 166, 49199, 157, 159, 167, 49200, 52387]
  aes128GcmSuites = [156, 158, 166, 49199]
  aes128Suites = [49181, 49182, 47, 51, 52, 60, 103, 108, 49171,...
ciphersuites which use AES symmetric cipher in CBC mode with 128 bit key
  aes256GcmSuites = [157, 159, 167, 49200]
  aes256Suites = [49184, 49185, 53, 58, 57, 61, 107, 109, 49172,...
ciphersuites which use AES symmetric cipher in CBC mode with 128 bit key
  anonSuites = [167, 166, 109, 58, 108, 52, 27, 24]
ciphersuites which use anonymous Finite Field Diffie-Hellman key exchange
  certAllSuites = [49185, 49182, 49179, 157, 156, 61, 60, 53, 47...
ciphersuites which use RSA server authentication
  certSuites = [157, 156, 61, 60, 53, 47, 10, 5, 4, 1, 2, 59]
ciphersuites which use RSA key exchange with RSA server authentication
  chacha20Suites = [52387]
  dhAllSuites = [52387, 159, 158, 107, 103, 57, 51, 22, 167, 166...
  dheCertSuites = [52387, 159, 158, 107, 103, 57, 51, 22]
  ecdhAllSuites = [49200, 49199, 49192, 49191, 49172, 49171, 491...
  ecdhAnonSuites = [49177, 49176, 49175, 49174, 49173]
  ecdheCertSuites = [49200, 49199, 49192, 49191, 49172, 49171, 4...
  ietfNames = {1: 'TLS_RSA_WITH_NULL_MD5', 2: 'TLS_RSA_WITH_NULL...
dictionary with string names of the ciphersuites
  md5Suites = [24, 4, 1]
ciphersuites which use MD-5 HMAC integrity mechanism and protocol default Pseudo Random Function
  nullSuites = [1, 2, 59, 49168, 49173]
  rc4Suites = [24, 5, 4, 49174]
ciphersuites which use RC4 symmetric cipher with 128 bit key
  sha256Suites = [60, 61, 103, 107, 59, 108, 109, 49191]
ciphersuites which use SHA-256 HMAC integrity mechanism and SHA-256 Pseudo Random Function
  sha384PrfSuites = [49192, 157, 159, 167, 49200]
  sha384Suites = [49192]
  shaSuites = [49178, 49181, 49184, 49179, 49182, 49185, 10, 47,...
ciphersuites which use SHA-1 HMAC integrity mechanism and protocol default Pseudo Random Function
  srpAllSuites = [49184, 49181, 49178, 49185, 49182, 49179]
all SRP ciphersuites, pure SRP and with RSA based server authentication
  srpCertSuites = [49185, 49182, 49179]
ciphersuites which use Secure Remote Password (SRP) key exchange protocol with RSA server authentication
  srpSuites = [49184, 49181, 49178]
ciphersuites which use Secure Remote Password (SRP) key exchange protocol
  ssl3Suites = [49178, 49181, 49184, 49179, 49182, 49185, 10, 47...
  streamSuites = [24, 5, 4, 49174, 1, 2, 59, 49168, 49173]
  tls12Suites = [60, 61, 103, 107, 59, 108, 109, 49191, 49192, 1...
  tripleDESSuites = [49178, 49179, 10, 22, 27, 49175]
ciphersuties which use 3DES symmetric cipher in CBC mode
Class Variable Details [hide private]

aes128Suites

ciphersuites which use AES symmetric cipher in CBC mode with 128 bit key
Value:
[49181, 49182, 47, 51, 52, 60, 103, 108, 49171, 49191, 49176]

aes256Suites

ciphersuites which use AES symmetric cipher in CBC mode with 128 bit key
Value:
[49184, 49185, 53, 58, 57, 61, 107, 109, 49172, 49192, 49177]

certAllSuites

ciphersuites which use RSA server authentication
Value:
[49185,
 49182,
 49179,
 157,
 156,
 61,
 60,
 53,
...

dhAllSuites

Value:
[52387,
 159,
 158,
 107,
 103,
 57,
 51,
 22,
...

ecdhAllSuites

Value:
[49200,
 49199,
 49192,
 49191,
 49172,
 49171,
 49168,
 49177,
...

ecdheCertSuites

Value:
[49200, 49199, 49192, 49191, 49172, 49171, 49168]

ietfNames

dictionary with string names of the ciphersuites
Value:
{1: 'TLS_RSA_WITH_NULL_MD5',
 2: 'TLS_RSA_WITH_NULL_SHA',
 4: 'TLS_RSA_WITH_RC4_128_MD5',
 5: 'TLS_RSA_WITH_RC4_128_SHA',
 10: 'TLS_RSA_WITH_3DES_EDE_CBC_SHA',
 22: 'TLS_DHE_RSA_WITH_AES_128_CBC_SHA',
 24: 'TLS_DH_ANON_WITH_RC4_128_MD5',
 27: 'TLS_DH_ANON_WITH_3DES_EDE_CBC_SHA',
...

shaSuites

ciphersuites which use SHA-1 HMAC integrity mechanism and protocol default Pseudo Random Function
Value:
[49178,
 49181,
 49184,
 49179,
 49182,
 49185,
 10,
 47,
...

ssl3Suites

Value:
[49178,
 49181,
 49184,
 49179,
 49182,
 49185,
 10,
 47,
...

tls12Suites

Value:
[60,
 61,
 103,
 107,
 59,
 108,
 109,
 49191,
...