Package tlslite :: Module extensions :: Class SupportedGroupsExtension
[hide private]
[frames] | no frames]

Class SupportedGroupsExtension

source code


Client side list of supported groups of (EC)DHE key exchage.

See RFC4492, RFC7027 and RFC-ietf-tls-negotiated-ff-dhe-10

Instance Methods [hide private]
 
__init__(self)
Create instance of class
source code
TLSExtension
create(self, groups)
Set the supported groups in the extension
source code
SupportedGroupsExtension
parse(self, parser)
Deserialise extension from on-the-wire data
source code

Inherited from TLSExtension: __eq__, __repr__, write

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

Class Variables [hide private]
Instance Variables [hide private]
int groups
list of groups that the client supports

Inherited from TLSExtension: serverType

Properties [hide private]
bytearray extData
a byte array containing the value of the extension as to be written on the wire
int extType
a 2^16-1 limited integer specifying the type of the extension that it contains, e.g.

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Create instance of class

Parameters:
  • server - whatever to select ClientHello or ServerHello version for parsing
Overrides: object.__init__

create(self, groups)

source code 

Set the supported groups in the extension

Parameters:
  • groups (list of int) - list of supported groups
Returns: TLSExtension
Overrides: TLSExtension.create

parse(self, parser)

source code 

Deserialise extension from on-the-wire data

Parameters:
  • p - data to be parsed
  • parser (Parser)
Returns: SupportedGroupsExtension
Raises:
  • SyntaxError - when the size of the passed element doesn't match the internal representation
Overrides: TLSExtension.parse

Property Details [hide private]

extData

a byte array containing the value of the extension as to be written on the wire
Get Method:
unreachable.extData(self) - Return raw data encoding of the extension
Type:
bytearray

extType

a 2^16-1 limited integer specifying the type of the extension that it contains, e.g. 0 indicates server name extension
Get Method:
unreachable.extType(self) - Type of extension, in this case - 10
Type:
int