Mini Shell

Direktori : /opt/imh-python/lib/python3.9/site-packages/pysnmp/proto/secmod/rfc3414/priv/
Upload File :
Current File : //opt/imh-python/lib/python3.9/site-packages/pysnmp/proto/secmod/rfc3414/priv/base.py

#
# This file is part of pysnmp software.
#
# Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pysnmp/license.html
#
from pysnmp.proto import error


class AbstractEncryptionService(object):
    serviceID = None
    keySize = 0

    def hashPassphrase(self, authProtocol, privKey):
        raise error.ProtocolError('no encryption')

    def localizeKey(self, authProtocol, privKey, snmpEngineID):
        raise error.ProtocolError('no encryption')

    def encryptData(self, encryptKey, privParameters, dataToEncrypt):
        raise error.ProtocolError('no encryption')

    def decryptData(self, decryptKey, privParameters, encryptedData):
        raise error.ProtocolError('no encryption')

Zerion Mini Shell 1.0