Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
rfc3414.py29 linesDownload Raw Back to pyasn1_modules
1#2# This file is part of pyasn1-modules software.3#4# Copyright (c) 2005-2020, Ilya Etingof <etingof@gmail.com>5# License: http://snmplabs.com/pyasn1/license.html6#7# SNMPv3 message syntax8#9# ASN.1 source from:10# http://www.ietf.org/rfc/rfc3414.txt11#12from pyasn1.type import constraint13from pyasn1.type import namedtype14from pyasn1.type import univ15 16 17class UsmSecurityParameters(univ.Sequence):18    componentType = namedtype.NamedTypes(19        namedtype.NamedType('msgAuthoritativeEngineID', univ.OctetString()),20        namedtype.NamedType('msgAuthoritativeEngineBoots',21                            univ.Integer().subtype(subtypeSpec=constraint.ValueRangeConstraint(0, 2147483647))),22        namedtype.NamedType('msgAuthoritativeEngineTime',23                            univ.Integer().subtype(subtypeSpec=constraint.ValueRangeConstraint(0, 2147483647))),24        namedtype.NamedType('msgUserName',25                            univ.OctetString().subtype(subtypeSpec=constraint.ValueSizeConstraint(0, 32))),26        namedtype.NamedType('msgAuthenticationParameters', univ.OctetString()),27        namedtype.NamedType('msgPrivacyParameters', univ.OctetString())28    )29 
codekingpro/portable-devtools · Team Ai