class IECGoosePDU(univ.Sequence):
    componentType = namedtype.NamedTypes(
        namedtype.NamedType(
            'gocbRef',
            char.VisibleString().subtype(implicitTag=tag.Tag(
                tag.tagClassContext, tag.tagFormatSimple, 0))),
        namedtype.NamedType(
            'timeAllowedtoLive',
            univ.Integer().subtype(implicitTag=tag.Tag(
                tag.tagClassContext, tag.tagFormatSimple, 1))),
        namedtype.NamedType(
            'datSet',
            char.VisibleString().subtype(implicitTag=tag.Tag(
                tag.tagClassContext, tag.tagFormatSimple, 2))),
        namedtype.OptionalNamedType(
            'goID',
            char.VisibleString().subtype(implicitTag=tag.Tag(
                tag.tagClassContext, tag.tagFormatSimple, 3))),
        namedtype.NamedType(
            't',
            UtcTime().subtype(implicitTag=tag.Tag(tag.tagClassContext,
                                                  tag.tagFormatSimple, 4))),
        namedtype.NamedType(
            'stNum',
            univ.Integer().subtype(implicitTag=tag.Tag(
                tag.tagClassContext, tag.tagFormatSimple, 5))),
        namedtype.NamedType(
            'sqNum',
            univ.Integer().subtype(implicitTag=tag.Tag(
                tag.tagClassContext, tag.tagFormatSimple, 6))),
        namedtype.NamedType(
            'test',
            univ.Boolean(False).subtype(implicitTag=tag.Tag(
                tag.tagClassContext, tag.tagFormatSimple, 7))),
        namedtype.NamedType(
            'confRev',
            univ.Integer().subtype(implicitTag=tag.Tag(
                tag.tagClassContext, tag.tagFormatSimple, 8))),
        namedtype.NamedType(
            'ndsCom',
            univ.Boolean(False).subtype(implicitTag=tag.Tag(
                tag.tagClassContext, tag.tagFormatSimple, 9))),
        namedtype.NamedType(
            'numDatSetEntries',
            univ.Integer().subtype(implicitTag=tag.Tag(
                tag.tagClassContext, tag.tagFormatSimple, 10))),
        namedtype.NamedType(
            'allData',
            AllData().subtype(implicitTag=tag.Tag(tag.tagClassContext,
                                                  tag.tagFormatSimple, 11))),
        namedtype.OptionalNamedType(
            'security',
            univ.OctetString().subtype(implicitTag=tag.Tag(
                tag.tagClassContext, tag.tagFormatSimple, 12))),
    )
Exemple #2
0
class DisplayText(univ.Choice):
    componentType = namedtype.NamedTypes(
        namedtype.NamedType('visibleString',
                            char.VisibleString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, 200))),
        namedtype.NamedType('bmpString', char.BMPString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, 200))),
        namedtype.NamedType('utf8String', char.UTF8String().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, 200)))
    )
Exemple #3
0
class RelaxedDisplayText(univ.Choice):
	componentType = namedtype.NamedTypes(
		namedtype.NamedType("ia5String", char.IA5String()),
		namedtype.NamedType("visibleString", char.VisibleString()),
		namedtype.NamedType("bmpString", char.BMPString()),
		namedtype.NamedType("utf8String", char.UTF8String()),
	)
class ServiceInstanceAttributeElement(univ.Sequence):
    componentType = namedtype.NamedTypes(
        namedtype.NamedType('identifier', univ.ObjectIdentifier()),
        namedtype.NamedType(
            'siAttributeValue',
            char.VisibleString().subtype(
                subtypeSpec=constraint.ValueSizeConstraint(1, 256))))
Exemple #5
0
class HashInput(univ.Sequence):
    componentType = namedtype.NamedTypes(
        namedtype.NamedType(
            'time',
            univ.OctetString().subtype(
                subtypeSpec=constraint.ValueSizeConstraint(8, 8))),
        namedtype.NamedType(
            'randomNumber',
            univ.Integer().subtype(
                subtypeSpec=constraint.ValueRangeConstraint(0, 2147483647))),
        namedtype.NamedType('userName', char.VisibleString()),
        namedtype.NamedType('passWord', univ.OctetString()))
class ClcwPhysicalChannel(univ.Choice):
    componentType = namedtype.NamedTypes(
        namedtype.NamedType(
            'configured',
            char.VisibleString().subtype(
                subtypeSpec=constraint.ValueSizeConstraint(1, 32)).subtype(
                    implicitTag=tag.Tag(tag.tagClassContext,
                                        tag.tagFormatSimple, 0))),
        namedtype.NamedType(
            'notConfigured',
            univ.Null().subtype(implicitTag=tag.Tag(tag.tagClassContext,
                                                    tag.tagFormatSimple, 1))))
Exemple #7
0
class DisplayText(univ.Choice):
    componentType = namedtype.NamedTypes(
        namedtype.NamedType(
            'ia5String',
            char.IA5String().subtype(implicitTag=tag.Tag(
                tag.tagClassContext, tag.tagFormatConstructed, 0x0))),
        namedtype.NamedType(
            'visibleString',
            char.VisibleString().subtype(implicitTag=tag.Tag(
                tag.tagClassContext, tag.tagFormatConstructed, 0x1))),
        namedtype.NamedType(
            'bmpString',
            char.BMPString().subtype(implicitTag=tag.Tag(
                tag.tagClassContext, tag.tagFormatConstructed, 0x2))),
        namedtype.NamedType(
            'utf8String',
            char.UTF8String().subtype(implicitTag=tag.Tag(
                tag.tagClassContext, tag.tagFormatConstructed, 0x3))),
    )
SubjectDirectoryAttributes.componentType = Attribute()
SubjectDirectoryAttributes.subtypeSpec = constraint.ValueSizeConstraint(1, MAX)

id_kp_OCSPSigning = _buildOid(id_kp, 9)

id_kp_timeStamping = _buildOid(id_kp, 8)


class DisplayText(univ.Choice):
    pass


DisplayText.componentType = namedtype.NamedTypes(
    namedtype.NamedType('ia5String', char.IA5String().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, 200))),
    namedtype.NamedType('visibleString',
                        char.VisibleString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, 200))),
    namedtype.NamedType('bmpString', char.BMPString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, 200))),
    namedtype.NamedType('utf8String', char.UTF8String().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, 200)))
)


class NoticeReference(univ.Sequence):
    pass


NoticeReference.componentType = namedtype.NamedTypes(
    namedtype.NamedType('organization', DisplayText()),
    namedtype.NamedType('noticeNumbers', univ.SequenceOf(componentType=univ.Integer()))
)

         implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 6))),
 namedtype.NamedType(
     'floating-point',
     FloatingPoint().subtype(
         implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 7))),
 namedtype.NamedType(
     'real',
     univ.Real().subtype(
         implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 8))),
 namedtype.NamedType(
     'octet-string',
     univ.OctetString().subtype(
         implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 9))),
 namedtype.NamedType(
     'visible-string',
     char.VisibleString().subtype(implicitTag=tag.Tag(
         tag.tagClassContext, tag.tagFormatSimple, 10))),
 namedtype.NamedType(
     'binary-time',
     TimeOfDay().subtype(implicitTag=tag.Tag(tag.tagClassContext,
                                             tag.tagFormatSimple, 12))),
 namedtype.NamedType(
     'bcd',
     univ.Integer().subtype(implicitTag=tag.Tag(tag.tagClassContext,
                                                tag.tagFormatSimple, 13))),
 namedtype.NamedType(
     'booleanArray',
     univ.BitString().subtype(implicitTag=tag.Tag(
         tag.tagClassContext, tag.tagFormatSimple, 14))),
 namedtype.NamedType(
     'objId',
     univ.ObjectIdentifier().subtype(implicitTag=tag.Tag(
Exemple #10
0
class VisibleStringDecoder(OctetStringDecoder):
    protoComponent = char.VisibleString()
Exemple #11
0
    namedtype.NamedType(
        'ecuIdentifier',
        Identifier().subtype(
            implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
    namedtype.NamedType(
        'previousTime',
        UTCDateTime().subtype(
            implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1))),
    namedtype.NamedType(
        'currentTime',
        UTCDateTime().subtype(
            implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 2))),
    namedtype.OptionalNamedType(
        'securityAttack',
        char.VisibleString().
        subtype(subtypeSpec=constraint.ValueSizeConstraint(1, 1024)).subtype(
            implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 3))),
    namedtype.NamedType(
        'installedImage',
        Target().subtype(implicitTag=tag.Tag(tag.tagClassContext,
                                             tag.tagFormatConstructed, 4))))


class ECUVersionManifest(univ.Sequence):
    pass


ECUVersionManifest.componentType = namedtype.NamedTypes(
    namedtype.NamedType(
        'signed',
        ECUVersionManifestSigned().subtype(implicitTag=tag.Tag(
Exemple #12
0
    pass


DelegatedTargetsRoles.componentType = DelegatedTargetsRole()
DelegatedTargetsRoles.subtypeSpec=constraint.ValueSizeConstraint(1, 8)


class ECUVersionManifestSigned(univ.Sequence):
    pass


ECUVersionManifestSigned.componentType = namedtype.NamedTypes(
    namedtype.NamedType('ecuIdentifier', Identifier().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
    namedtype.NamedType('previousTime', UTCDateTime().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1))),
    namedtype.NamedType('currentTime', UTCDateTime().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 2))),
    namedtype.OptionalNamedType('securityAttack', char.VisibleString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, 1024)).subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 3))),
    namedtype.NamedType('installedImage', Target().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 4)))
)


class ECUVersionManifest(univ.Sequence):
    pass


ECUVersionManifest.componentType = namedtype.NamedTypes(
    namedtype.NamedType('signed', ECUVersionManifestSigned().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 0))),
    namedtype.NamedType('signature', Signature().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 1)))
)


class ImageRequest(univ.Sequence):
Exemple #13
0
class HashInput(univ.Sequence):
    componentType = namedtype.NamedTypes(
        namedtype.NamedType('time', TimeCCSDS()),
        namedtype.NamedType('randomNumber', RandomNumber()),
        namedtype.NamedType('userName', char.VisibleString()),
        namedtype.NamedType('passWord', univ.OctetString()))
Exemple #14
0
class RandomNumber(univ.Integer):
    pass


RandomNumber.subtypeSpec = constraint.ValueRangeConstraint(0, 42949667295)


class HashInput(univ.Sequence):
    pass


HashInput.componentType = namedtype.NamedTypes(
    namedtype.NamedType('time', TimeCCSDS()),
    namedtype.NamedType('randomNumber', RandomNumber()),
    namedtype.NamedType('username', char.VisibleString()),
    namedtype.NamedType('password', univ.OctetString()))


class ISP1Credentials(univ.Sequence):
    pass


ISP1Credentials.componentType = namedtype.NamedTypes(
    namedtype.NamedType('time', TimeCCSDS()),
    namedtype.NamedType('randomNumber', RandomNumber()),
    namedtype.NamedType(
        'theProtected',
        univ.OctetString().subtype(
            subtypeSpec=constraint.ValueSizeConstraint(20, 20))))
Exemple #15
0

class NumberOfCltusProcessed(IntUnsignedLong):
    pass


class NumberOfCltusReceived(IntUnsignedLong):
    pass


class ClcwPhysicalChannel(univ.Choice):
    pass


ClcwPhysicalChannel.componentType = namedtype.NamedTypes(
    namedtype.NamedType('configured', char.VisibleString().subtype(subtypeSpec=constraint.ValueSizeConstraint(1, 32)).subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))),
    namedtype.NamedType('notConfigured', univ.Null().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 1)))
)


class TimeoutPeriod(univ.Integer):
    pass


TimeoutPeriod.subtypeSpec = constraint.ValueRangeConstraint(1, 600)


class DiagnosticCltuThrowEvent(univ.Choice):
    pass