linotp.lib.ImportOTP.PSKC module

Parsing of pskc files:
http://tools.ietf.org/search/rfc6030
linotp.lib.ImportOTP.PSKC.aes_decrypt(transport_b64, key_hex, serial='')[source]
linotp.lib.ImportOTP.PSKC.checkSerial(serial)[source]
linotp.lib.ImportOTP.PSKC.getEncMethod(elem)[source]
linotp.lib.ImportOTP.PSKC.getMacMethod(elem)[source]
linotp.lib.ImportOTP.PSKC.parsePSKCdata(xml, preshared_key_hex=None, password=None, do_checkserial=True, do_feitian=False)[source]

This function parses XML data of a PSKC file, (RFC6030) It can read * AES-128-CBC encrypted (preshared_key_bin) data * password based encrypted data * plain text data

It returns a dictionary of
serial : { hmac_key , counter, .... }