Package dpkt :: Module ssl_ciphersuites :: Class CipherSuite
[hide private]
[frames] | no frames]

Class CipherSuite

source code

object --+
         |
        CipherSuite


Encapsulates a cipher suite.

Members/args:
* code: two-byte ID code, as int
* name: as in 'TLS_RSA_WITH_RC4_40_MD5'
* kx: key exchange algorithm, string
* auth: authentication algorithm, string
* encoding: encoding algorithm
* mac: message authentication code algorithm

Instance Methods [hide private]
 
__init__(self, code, name, kx, auth, encoding, mac)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__repr__(self)
repr(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  MAC_SIZES = {'MD5': 16, 'SHA': 20, 'SHA256': 32}
  BLOCK_SIZES = {'AES_256_CBC': 16}
Properties [hide private]
  mac_size
In bytes.
  block_size
In bytes.

Inherited from object: __class__

Method Details [hide private]

__init__(self, code, name, kx, auth, encoding, mac)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 
repr(x)

Overrides: object.__repr__
(inherited documentation)

Property Details [hide private]

mac_size

In bytes. Default to 0.

Get Method:
unreachable.mac_size(self) - In bytes.

block_size

In bytes. Default to 1.

Get Method:
unreachable.block_size(self) - In bytes.