def __getEncryptionKey(self, privKey, snmpEngineBoots, snmpEngineTime):
salt = [self._localInt >> 56 & 0xff,
self._localInt >> 48 & 0xff,
self._localInt >> 40 & 0xff,
self._localInt >> 32 & 0xff,
self._localInt >> 24 & 0xff,
self._localInt >> 16 & 0xff,
self._localInt >> 8 & 0xff,
self._localInt & 0xff]
if self._localInt == 0xffffffffffffffff:
self._localInt = 0
else:
self._localInt += 1
return self.__getDecryptionKey(privKey, snmpEngineBoots, snmpEngineTime, salt) + (
univ.OctetString(salt).asOctets(),)
评论列表
文章目录