/external/python/pyasn1/tests/type/ |
D | test_univ.py | 488 … 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 …]
|
D | test_namedtype.py | 40 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/ |
D | test_encoder.py | 46 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/ |
D | rfc1902.py | 30 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()),
|
D | rfc3412.py | 21 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()),
|
D | rfc3414.py | 19 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())
|
D | rfc1155.py | 28 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(
|
D | rfc6402.py | 74 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):
|
D | rfc2251.py | 24 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 …]
|
D | rfc2560.py | 56 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())
|
D | rfc3852.py | 104 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):
|
D | rfc5652.py | 128 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):
|
D | rfc4210.py | 26 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(
|
D | rfc2315.py | 50 class EncryptedContent(univ.OctetString): 89 class Digest(univ.OctetString): 124 class EncryptedKey(univ.OctetString): 218 class EncryptedDigest(univ.OctetString): 282 class Data(univ.OctetString):
|
D | rfc5208.py | 26 class EncryptedData(univ.OctetString): 37 class PrivateKey(univ.OctetString):
|
D | rfc2511.py | 35 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/ |
D | octetstring.rst | 2 .. _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…
|
D | contents.rst | 14 :ref:`OctetString <univ.OctetString>`. Constructed types like
|
/external/python/pyasn1/tests/codec/ber/ |
D | test_encoder.py | 159 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 …]
|
D | test_decoder.py | 199 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/ |
D | test_encoder.py | 27 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/ |
D | test_decoder.py | 56 …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')
|
D | test_encoder.py | 64 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/ |
D | contents.rst | 12 :ref:`OctetString <univ.OctetString>` except that they all operate on
|
/external/python/pyasn1/ |
D | CHANGES.rst | 13 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 …]
|