Home
last modified time | relevance | path

Searched refs:OctetString (Results 1 – 25 of 45) sorted by relevance

12

/external/python/pyasn1/tests/type/
Dtest_univ.py488 … assert univ.OctetString(self.encodedPythonString) == self.encodedPythonString, '__init__() fails'
491 … assert univ.OctetString(univ.OctetString(self.encodedPythonString)) == self.encodedPythonString
492 assert univ.OctetString(univ.Integer(123)) == univ.OctetString('123')
496 …assert str(univ.OctetString(self.encodedPythonString, encoding=self.encoding)) == self.encodedPyth…
498 …assert bytes(univ.OctetString(self.encodedPythonString, encoding=self.encoding)) == self.encodedPy…
502 …assert str(univ.OctetString(self.encodedPythonString, encoding=self.encoding)) == self.encodedPyth…
503 …assert unicode(univ.OctetString(self.pythonString, encoding=self.encoding)) == self.pythonString, …
505 …assert str(univ.OctetString(self.pythonString, encoding=self.encoding)) == self.pythonString, 'uni…
508 …assert univ.OctetString(self.encodedPythonString)[0] == self.encodedPythonString[0], '__getitem__(…
511 assert 'abc' in repr(univ.OctetString('abc'))
[all …]
Dtest_namedtype.py40 namedtype.NamedType('first-name', univ.OctetString('')),
42 namedtype.NamedType('family-name', univ.OctetString(''))
54 assert self.e[0] == namedtype.NamedType('first-name', univ.OctetString(''))
60 assert self.e.getTypeByPosition(0) == univ.OctetString(''), \
73 univ.OctetString.tagSet: univ.OctetString('')
77 univ.OctetString.tagSet: univ.OctetString('')
80 univ.OctetString.tagSet: univ.OctetString('')
85 univ.OctetString.tagSet: univ.OctetString(''),
108 assert self.e.getPositionNearType(univ.OctetString.tagSet, 0) == 0
110 assert self.e.getPositionNearType(univ.OctetString.tagSet, 2) == 2
[all …]
/external/python/pyasn1/tests/codec/cer/
Dtest_encoder.py46 univ.OctetString('Quick brown fox')
51 univ.OctetString('Q' * 1001)
162 s.append(univ.OctetString('a'))
163 s.append(univ.OctetString('ab'))
168 s.append(univ.OctetString('ab'))
169 s.append(univ.OctetString('a'))
174 s.append(univ.OctetString('b'))
175 s.append(univ.OctetString('a'))
180 s.append(univ.OctetString('a'))
181 s.append(univ.OctetString('b'))
[all …]
/external/python/pyasn1-modules/pyasn1_modules/
Drfc1902.py30 class OctetString(univ.OctetString): class
36 class IpAddress(univ.OctetString):
37 tagSet = univ.OctetString.tagSet.tagImplicitly(
40 subtypeSpec = univ.OctetString.subtypeSpec + constraint.ValueSizeConstraint(
81 class Opaque(univ.OctetString):
82 tagSet = univ.OctetString.tagSet.tagImplicitly(
96 class Bits(univ.OctetString):
107 namedtype.NamedType('string-value', OctetString()),
Drfc3412.py21 namedtype.NamedType('contextEngineId', univ.OctetString()),
22 namedtype.NamedType('contextName', univ.OctetString()),
30 namedtype.NamedType('encryptedPDU', univ.OctetString()),
40 …namedtype.NamedType('msgFlags', univ.OctetString().subtype(subtypeSpec=constraint.ValueSizeConstra…
51 namedtype.NamedType('msgSecurityParameters', univ.OctetString()),
Drfc3414.py19 namedtype.NamedType('msgAuthoritativeEngineID', univ.OctetString()),
25 … univ.OctetString().subtype(subtypeSpec=constraint.ValueSizeConstraint(0, 32))),
26 namedtype.NamedType('msgAuthenticationParameters', univ.OctetString()),
27 namedtype.NamedType('msgPrivacyParameters', univ.OctetString())
Drfc1155.py28 namedtype.NamedType('string', univ.OctetString()),
34 class IpAddress(univ.OctetString):
35 tagSet = univ.OctetString.tagSet.tagImplicitly(
76 class Opaque(univ.OctetString):
77 tagSet = univ.OctetString.tagSet.tagImplicitly(
Drfc6402.py74 namedtype.NamedType('pendToken', univ.OctetString()),
181 namedtype.NamedType('witness', univ.OctetString())
278 namedtype.NamedType('anchorHashes', univ.SequenceOf(componentType=univ.OctetString()))
291 namedtype.OptionalNamedType('passphrase', univ.OctetString()),
317 namedtype.NamedType('witness', univ.OctetString())
327 namedtype.NamedType('certHashes', univ.SequenceOf(componentType=univ.OctetString())),
372 namedtype.NamedType('thePOP', univ.OctetString())
551 namedtype.NamedType('witness', univ.OctetString())
561 class NoSignatureValue(univ.OctetString):
Drfc2251.py24 class LDAPString(univ.OctetString):
28 class LDAPOID(univ.OctetString):
52 class AttributeValue(univ.OctetString):
56 class AssertionValue(univ.OctetString):
82 namedtype.OptionalNamedType('controlValue', univ.OctetString())
101 namedtype.OptionalNamedType('credentials', univ.OctetString())
107 namedtype.NamedType('simple', univ.OctetString().subtype(
109 namedtype.NamedType('reserved-1', univ.OctetString().subtype(
111 namedtype.NamedType('reserved-2', univ.OctetString().subtype(
315 namedtype.OptionalNamedType('serverSaslCreds', univ.OctetString().subtype(
[all …]
Drfc2560.py56 class GeneralName(univ.OctetString):
96 namedtype.NamedType('issuerNameHash', univ.OctetString()),
97 namedtype.NamedType('issuerKeyHash', univ.OctetString()),
125 class KeyHash(univ.OctetString):
167 namedtype.NamedType('response', univ.OctetString())
Drfc3852.py104 class EncryptedKey(univ.OctetString):
127 namedtype.NamedType('keyIdentifier', univ.OctetString()),
182 class SubjectKeyIdentifier(univ.OctetString):
225 class UserKeyingMaterial(univ.OctetString):
346 class EncryptedContent(univ.OctetString):
397 namedtype.OptionalNamedType('eContent', univ.OctetString().subtype(
402 class Digest(univ.OctetString):
544 class MessageAuthenticationCode(univ.OctetString):
556 class SignatureValue(univ.OctetString):
604 class MessageDigest(univ.OctetString):
Drfc5652.py128 class SignatureValue(univ.OctetString):
142 class SubjectKeyIdentifier(univ.OctetString):
168 class EncryptedKey(univ.OctetString):
189 class MessageAuthenticationCode(univ.OctetString):
315 class EncryptedContent(univ.OctetString):
352 namedtype.NamedType('keyIdentifier', univ.OctetString()),
410 class UserKeyingMaterial(univ.OctetString):
594 namedtype.OptionalNamedType('eContent', univ.OctetString().subtype(
603 class MessageDigest(univ.OctetString):
659 class Digest(univ.OctetString):
Drfc4210.py26 class KeyIdentifier(univ.OctetString):
187 namedtype.NamedType('witness', univ.OctetString()),
188 namedtype.NamedType('challenge', univ.OctetString())
318 namedtype.NamedType('certHash', univ.OctetString()),
417 namedtype.OptionalNamedType('rspInfo', univ.OctetString())
500 'salt', univ.OctetString().subtype(subtypeSpec=constraint.ValueSizeConstraint(0, 128))
729 namedtype.OptionalNamedType('transactionID', univ.OctetString().subtype(
731 namedtype.OptionalNamedType('senderNonce', univ.OctetString().subtype(
733 namedtype.OptionalNamedType('recipNonce', univ.OctetString().subtype(
Drfc2315.py50 class EncryptedContent(univ.OctetString):
89 class Digest(univ.OctetString):
124 class EncryptedKey(univ.OctetString):
218 class EncryptedDigest(univ.OctetString):
282 class Data(univ.OctetString):
Drfc5208.py26 class EncryptedData(univ.OctetString):
37 class PrivateKey(univ.OctetString):
Drfc2511.py35 class GeneralName(univ.OctetString):
60 class KeyGenParameters(univ.OctetString):
74 namedtype.OptionalNamedType('valueHint', univ.OctetString().subtype(
144 namedtype.NamedType('salt', univ.OctetString()),
/external/python/pyasn1/docs/source/pyasn1/type/univ/
Doctetstring.rst2 .. _univ.OctetString:
4 .. |ASN.1| replace:: OctetString
11 .. autoclass:: pyasn1.type.univ.OctetString(value=NoValue(), tagSet=TagSet(), subtypeSpec=Constrain…
18 ….. automethod:: pyasn1.type.univ.OctetString.clone(value=NoValue(), tagSet=TagSet(), subtypeSpec=C…
19 ….. automethod:: pyasn1.type.univ.OctetString.subtype(value=NoValue(), implicitTag=Tag(), explicitT…
Dcontents.rst14 :ref:`OctetString <univ.OctetString>`. Constructed types like
/external/python/pyasn1/tests/codec/ber/
Dtest_encoder.py159 self.o = univ.OctetString('Quick brown fox')
186 self.s = univ.OctetString()
214 self.o = univ.OctetString().subtype(
483 s.setComponentByPosition(0, univ.OctetString('quick brown'))
488 s.setComponentByPosition(0, univ.OctetString('quick brown'))
495 s.setComponentByPosition(0, univ.OctetString('quick brown'))
502 s.setComponentByPosition(0, univ.OctetString('quick brown'))
511 self.s = univ.SequenceOf(componentType=univ.OctetString())
541 self.s = univ.SequenceOf(componentType=univ.OctetString())
577 s.setComponentByPosition(0, univ.OctetString('quick brown'))
[all …]
Dtest_decoder.py199 self.o = univ.OctetString(
201 tagSet=univ.OctetString.tagSet.tagExplicitly(
506 self.s = univ.SequenceOf(componentType=univ.OctetString())
507 self.s.setComponentByPosition(0, univ.OctetString('quick brown'))
559 self.s = univ.SequenceOf(componentType=univ.OctetString())
560 self.s.setComponentByPosition(0, univ.OctetString('quick brown'))
586 self.s = univ.SetOf(componentType=univ.OctetString())
587 self.s.setComponentByPosition(0, univ.OctetString('quick brown'))
618 self.s = univ.SetOf(componentType=univ.OctetString())
619 self.s.setComponentByPosition(0, univ.OctetString('quick brown'))
[all …]
/external/python/pyasn1/tests/codec/der/
Dtest_encoder.py27 univ.OctetString('Quick brown fox')
32 univ.OctetString('Q' * 10000)
52 self.s = univ.SetOf(componentType=univ.OctetString())
88 namedtype.NamedType('name', univ.OctetString()),
120 namedtype.NamedType('name', univ.OctetString()),
140 namedtype.NamedType('name', univ.OctetString()),
157 namedtype.OptionalNamedType('first-name', univ.OctetString()),
248 namedtype.OptionalNamedType('first-name', univ.OctetString()),
256 namedtype.NamedType('first-name', univ.OctetString())
310 componentType=univ.OctetString()
[all …]
/external/python/pyasn1/tests/codec/native/
Dtest_decoder.py56 …assert decoder.decode('Quick brown fox', asn1Spec=univ.OctetString()) == univ.OctetString('Quick b…
81 namedtype.NamedType('first-name', univ.OctetString()),
89 s[1] = univ.OctetString('xx')
101 namedtype.NamedType('first-name', univ.OctetString()),
108 s[1] = univ.OctetString('xx')
Dtest_encoder.py64 self.o = univ.OctetString('Quick brown fox')
97 namedtype.OptionalNamedType('first-name', univ.OctetString('')),
117 namedtype.NamedType('string', univ.OctetString())
137 self.s = univ.Any(encoder.encode(univ.OctetString('fox')))
/external/python/pyasn1/docs/source/pyasn1/type/char/
Dcontents.rst12 :ref:`OctetString <univ.OctetString>` except that they all operate on
/external/python/pyasn1/
DCHANGES.rst13 OctetString and BitString encoders
29 - Most ASN.1 types' `__str__` magic methods (except for OctetString and
91 - Fixed Character types instantiation from OctetString type -- double
199 - ASN.1 OctetString initialized from a Python object performs bytes()
287 - Unicode initializer support added to OctetString type and derivatives.
323 - The OctetString.__int__() and .__float__() magic methods implemented.
339 - Fix to BitString and OctetString decoders dealing with constructed
422 - Fix to OctetString.prettyOut() method that looses leading zero when
429 - Fix to OctetString.__str__() workings of a non-initialized object.
430 - Fix to quote initializer of OctetString.__repr__()
[all …]

12