Lines Matching refs:univ
18 from pyasn1.type import univ
27 assert encoder.encode(univ.Boolean(1)) == ints2octs((1, 1, 255))
30 assert encoder.encode(univ.Boolean(0)) == ints2octs((1, 1, 0))
36 univ.BitString((1, 0) * 5)
40 …assert encoder.encode(univ.BitString((1, 0) * 501)) == ints2octs((3, 127, 6) + (170,) * 125 + (128…
46 univ.OctetString('Quick brown fox')
51 univ.OctetString('Q' * 1001)
157 s = univ.SequenceOf()
161 s = univ.SequenceOf()
162 s.append(univ.OctetString('a'))
163 s.append(univ.OctetString('ab'))
167 s = univ.SequenceOf()
168 s.append(univ.OctetString('ab'))
169 s.append(univ.OctetString('a'))
173 s = univ.SequenceOf()
174 s.append(univ.OctetString('b'))
175 s.append(univ.OctetString('a'))
179 s = univ.SequenceOf()
180 s.append(univ.OctetString('a'))
181 s.append(univ.OctetString('b'))
188 self.s = univ.SequenceOf(componentType=univ.OctetString())
221 s = univ.SetOf()
225 s = univ.SetOf()
226 s.append(univ.OctetString('a'))
227 s.append(univ.OctetString('ab'))
231 s = univ.SetOf()
232 s.append(univ.OctetString('ab'))
233 s.append(univ.OctetString('a'))
237 s = univ.SetOf()
238 s.append(univ.OctetString('b'))
239 s.append(univ.OctetString('a'))
243 s = univ.SetOf()
244 s.append(univ.OctetString('a'))
245 s.append(univ.OctetString('b'))
252 self.s = univ.SetOf(componentType=univ.OctetString())
290 self.s = univ.Set()
291 self.s.setComponentByPosition(0, univ.Null(''))
292 self.s.setComponentByPosition(1, univ.OctetString('quick brown'))
293 self.s.setComponentByPosition(2, univ.Integer(1))
317 self.s = univ.Set(componentType=namedtype.NamedTypes(
318 namedtype.NamedType('place-holder', univ.Null('')),
319 namedtype.OptionalNamedType('first-name', univ.OctetString()),
320 namedtype.DefaultedNamedType('age', univ.Integer(33))
339 self.s.setComponentByPosition(0, univ.Null(''))
340 self.s.setComponentByPosition(1, univ.OctetString('quick brown'))
341 self.s.setComponentByPosition(2, univ.Integer(1))
369 c = univ.Choice(componentType=namedtype.NamedTypes(
370 namedtype.NamedType('actual', univ.Boolean(0))
372 self.s = univ.Set(componentType=namedtype.NamedTypes(
373 namedtype.NamedType('place-holder', univ.Null('')),
388 c = univ.Choice(
390 namedtype.NamedType('premium', univ.Boolean())
394 s = univ.Set(
396 namedtype.NamedType('name', univ.OctetString()),
408 c = univ.Choice(
410 namedtype.NamedType('premium', univ.Boolean())
414 s = univ.Set(
416 namedtype.NamedType('name', univ.OctetString()),
430 self.s = univ.Set()
431 self.s.setComponentByPosition(0, univ.Null(''))
432 self.s.setComponentByPosition(1, univ.OctetString('quick brown'))
433 self.s.setComponentByPosition(2, univ.Integer(1))
457 self.s = univ.Sequence()
458 self.s.setComponentByPosition(0, univ.Null(''))
459 self.s.setComponentByPosition(1, univ.OctetString('quick brown'))
460 self.s.setComponentByPosition(2, univ.Integer(1))
484 self.s = univ.Sequence(
486 namedtype.NamedType('place-holder', univ.Null('')),
487 namedtype.OptionalNamedType('first-name', univ.OctetString()),
488 namedtype.DefaultedNamedType('age', univ.Integer(33))
508 self.s.setComponentByPosition(0, univ.Null(''))
509 self.s.setComponentByPosition(1, univ.OctetString('quick brown'))
510 self.s.setComponentByPosition(2, univ.Integer(1))
538 inner = univ.Sequence(
540 namedtype.OptionalNamedType('first-name', univ.OctetString()),
541 namedtype.DefaultedNamedType('age', univ.Integer(33)),
545 outerWithOptional = univ.Sequence(
551 outerWithDefault = univ.Sequence(
628 layer3 = univ.Sequence(
630 namedtype.OptionalNamedType('first-name', univ.OctetString()),
631 namedtype.DefaultedNamedType('age', univ.Integer(33)),
635 layer2 = univ.Choice(
638 namedtype.NamedType('first-name', univ.OctetString())
642 layer1 = univ.Sequence(
690 layer2 = univ.SequenceOf(
691 componentType=univ.OctetString()
694 layer1 = univ.Sequence(