File: base.py

package info (click to toggle)
python-pysnmp4 4.1.9a-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,068 kB
  • ctags: 1,969
  • sloc: python: 10,608; sh: 44; makefile: 10
file content (11 lines) | stat: -rw-r--r-- 401 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
from pysnmp.proto import error

class AbstractEncryptionService:
    serviceID = None
    def encryptData(self, mibInstrumController, encryptKey,
                    dataToEncrypt):
        raise error.ProtocolError('no encryption')
    
    def decryptData(self, mibInstrumController, decryptKey,
                    privParameters, encryptedData):
        raise error.ProtocolError('no encryption')