linotp.lib.security package

module for SecurityModules / devices like hsms

exception linotp.lib.security.FatalHSMException

Bases: Exception

class linotp.lib.security.SecurityModule(config=None, add_conf=None)

Bases: object

decrypt(value: bytes, iv: bytes, id: int = 0) bytes
decryptPassword(cryptPass: str) bytes
decryptPin(cryptPin: str) bytes
encrypt(data: bytes, iv: bytes, id: int = 0) bytes
encryptPassword(cryptPass: bytes) str
encryptPin(cryptPin, iv=None) str
classmethod getAdditionalClassConfig()
isReady()
random(len: int) bytes
setup_module(params)
signMessage(message, method=None, slot_id=3)
verfiyMessageSignature(message, hex_mac, method=None, slot_id=3)

Submodules