Exemple #1
0
 def setTotpKeyHexa(self, keyVersion, timeKeyVersion, hexKey):
     """@DaplugDongle.setTotpKeyHexa"""
     keyLen = len(hexKey) / 2
     keys = splitKey(hexKey)
     totpKey = KeySet(keyVersion, keys[0], keys[1], keys[2])
     totpKey.setKeyAccess((timeKeyVersion << 8) + keyLen)
     totpKey.setKeyUsage(KeySet.USAGE_TOTP)
     self.putKey(totpKey)
Exemple #2
0
 def setTotpTimeKey(self, keyVersion, hexKey):
     """@DaplugDongle.setTotpTimeKey"""
     timeKey = KeySet(keyVersion, hexKey) 
     timeKey.setKeyAccess(0x0001)
     timeKey.setKeyUsage(KeySet.USAGE_TOTP_TIME_SRC)
     self.putKey(timeKey)