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

Class DigestSession

source code

object --+
         |
        DigestSession

Instance Methods [hide private]
 
__init__(self, lib, session, mecha)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
update(self, data)
C_DigestUpdate
source code
 
digestKey(self, handle)
C_DigestKey
source code
ckbytelist
final(self)
C_DigestFinal
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, lib, session, mecha)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

update(self, data)

source code 

C_DigestUpdate

Parameters:
  • data (bytes or string) - data to add to the digest

digestKey(self, handle)

source code 

C_DigestKey

Parameters:
  • handle (CK_OBJECT_HANDLE) - key handle

final(self)

source code 

C_DigestFinal

Returns: ckbytelist
the digest