Package PyKCS11 :: Class Mechanism
[hide private]
[frames] | no frames]

Class Mechanism

source code

object --+
         |
        Mechanism

Wraps CK_MECHANISM

Instance Methods [hide private]
 
__init__(self, mechanism, param=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
to_native(self) source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, mechanism, param=None)
(Constructor)

source code 

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

Parameters:
  • mechanism (integer, any CKM_* value) - the mechanism to be used
  • param (string or list/tuple of bytes) - data to be used as crypto operation parameter (i.e. the IV for some algorithms)
Overrides: object.__init__