from abc import ABCMeta, abstractmethod
[docs]class CyclingKey :
__metaclass__ = ABCMeta
[docs] def __init__( self, passphrase, **kw ) :
pass
[docs] @abstractmethod
def cycle( self, rounds = 1) :
pass
[docs] @abstractmethod
def getUUIDBytes( self, length ) :
pass
[docs] @abstractmethod
def getKeyBytes( self, length ) :
pass
[docs] @abstractmethod
def getKeyLength( self ) :
"""
:rtype: int
:return: Returns the key length.
"""
pass
[docs] @abstractmethod
def reset( self ) : pass
[docs] @abstractmethod
def setCycle( self, cycle ) : pass
[docs] @abstractmethod
def getCycles( self ) : pass