Package pike :: Module crypto :: Class TransformHeader
[hide private]
[frames] | no frames]

Class TransformHeader

source code

object --+    
         |    
core.Frame --+
             |
            TransformHeader

TransformHeader is designed to be a transparent slip attached to a Netbios frame object (specified as parent). During serialization, if a Netbios frame contains an attribute "transform", then that object's encode method will be called instead of each child frames' encode method. This frame is responsible for both encrypting and decrypting Smb2 frames according to an attached encryption context.

If the encryption_context is not explicitly specified, then it will be looked up based on session_id from the parent Netbios frame's connection reference

Nested Classes [hide private]

Inherited from core.Frame: __metaclass__

Instance Methods [hide private]
 
__init__(self, parent)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_children(self) source code
 
append(self, smb2_frame) source code
 
_encode(self, cur) source code
 
_encode_header(self, cur) source code
 
_encode_smb2(self, cur) source code
 
_decode(self, cur) source code
 
_decode_header(self, cur) source code
 
_decode_smb2(self, cur) source code
 
verify(self, *args, **kwds) source code

Inherited from core.Frame: __getitem__, __iter__, __len__, __setattr__, __str__, decode, encode, is_last_child, next_sibling, parse, prev_sibling, serialize

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

Class Variables [hide private]

Inherited from core.Frame: field_blacklist

Inherited from core.Frame (private): _register

Properties [hide private]

Inherited from core.Frame: children, context

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)