/external/chromium-trace/catapult/third_party/gsutil/third_party/pyasn1/test/codec/ber/ |
test_encoder.py | 3 from pyasn1.compat.octets import ints2octs namespace 21 assert encoder.encode(self.o) == ints2octs((127, 141, 245, 182, 253, 47, 3, 2, 1, 1)) 25 assert encoder.encode(univ.Integer(12)) == ints2octs((2, 1, 12)) 28 assert encoder.encode(univ.Integer(-12)) == ints2octs((2, 1, 244)) 31 assert encoder.encode(univ.Integer(0)) == ints2octs((2, 1, 0)) 37 assert substrate == ints2octs((2, 0)) 40 assert encoder.encode(univ.Integer(-1)) == ints2octs((2, 1, 255)) 45 ) == ints2octs((2, 9, 0, 255, 255, 255, 255, 255, 255, 255, 255)) 50 ) == ints2octs((2, 9, 255, 0, 0, 0, 0, 0, 0, 0, 1)) 54 assert encoder.encode(univ.Boolean(1)) == ints2octs((1, 1, 1) [all...] |
test_decoder.py | 3 from pyasn1.compat.octets import ints2octs, str2octs, null namespace 17 assert decoder.decode(ints2octs((127, 141, 245, 182, 253, 47, 3, 2, 1, 1))) == (1, null) 21 assert decoder.decode(ints2octs((2, 1, 12))) == (12, null) 23 assert decoder.decode(ints2octs((2, 1, 244))) == (-12, null) 25 assert decoder.decode(ints2octs((2, 0))) == (0, null) 27 assert decoder.decode(ints2octs((2, 1, 0))) == (0, null) 29 assert decoder.decode(ints2octs((2, 1, 255))) == (-1, null) 32 ints2octs((2, 9, 0, 255, 255, 255, 255, 255, 255, 255, 255)) 36 ints2octs((2, 9, 255, 0, 0, 0, 0, 0, 0, 0, 1)) 41 ints2octs((2, 1, 12)), asn1Spec=univ.Null( [all...] |
/external/chromium-trace/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/compat/ |
octets.py | 5 ints2octs = lambda s: ''.join([ int2oct(x) for x in s ]) variable 13 ints2octs = bytes variable 14 int2oct = lambda x: ints2octs((x,)) 15 null = ints2octs()
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/pyasn1/test/codec/cer/ |
test_decoder.py | 3 from pyasn1.compat.octets import ints2octs, str2octs, null namespace 17 assert decoder.decode(ints2octs((1, 1, 255))) == (1, null) 19 assert decoder.decode(ints2octs((1, 1, 0))) == (0, null) 24 ints2octs((4, 15, 81, 117, 105, 99, 107, 32, 98, 114, 111, 119, 110, 32, 102, 111, 120)), 28 ints2octs((36, 128, 4, 130, 3, 232) + (81,)*1000 + (4, 1, 81, 0, 0))
|
test_encoder.py | 3 from pyasn1.compat.octets import ints2octs namespace 17 assert encoder.encode(univ.Boolean(1)) == ints2octs((1, 1, 255)) 19 assert encoder.encode(univ.Boolean(0)) == ints2octs((1, 1, 0)) 25 ) == ints2octs((3, 127, 6) + (170,) * 125 + (128,)) 30 ) == ints2octs((3, 127, 6) + (170,) * 125 + (128,)) 36 ) == ints2octs((4, 15, 81, 117, 105, 99, 107, 32, 98, 114, 111, 119, 110, 32, 102, 111, 120)) 40 ) == ints2octs((36, 128, 4, 130, 3, 232) + (81,)*1000 + (4, 1, 81, 0, 0)) 71 assert encoder.encode(self.s) == ints2octs((49, 128, 5, 0, 0, 0)) 77 ) == ints2octs((49, 128, 4, 11, 113, 117, 105, 99, 107, 32, 98, 114, 111, 119, 110, 5, 0, 0, 0)) 83 ) == ints2octs((49, 128, 2, 1, 1, 5, 0, 0, 0) [all...] |
/external/chromium-trace/catapult/third_party/gsutil/third_party/pyasn1/test/codec/der/ |
test_encoder.py | 3 from pyasn1.compat.octets import ints2octs namespace 19 ) == ints2octs((4, 15, 81, 117, 105, 99, 107, 32, 98, 114, 111, 119, 110, 32, 102, 111, 120)) 25 ) == ints2octs((3, 2, 7, 128)) 42 assert encoder.encode(self.s) == ints2octs((49, 7, 4, 3, 97, 110, 110, 5, 0))
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/pyasn1/pyasn1/codec/ber/ |
encoder.py | 4 from pyasn1.compat.octets import int2oct, oct2int, ints2octs, null, str2octs namespace 83 _true = ints2octs((1,)) 84 _false = ints2octs((0,)) 98 return ints2octs((0,)), 0 112 return ints2octs(octets), 0 123 return int2oct(7-j) + ints2octs([r[k] for k in keys]), 0 196 return ints2octs(octets), 0
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/pyasn1/test/type/ |
test_univ.py | 2 from pyasn1.compat.octets import str2octs, ints2octs namespace 112 assert univ.OctetString(binValue="1000010111101110101111000000111011") == ints2octs((133, 238, 188, 14, 192)), 'bin init fails' 114 assert univ.OctetString(hexValue="FA9823C43E43510DE3422") == ints2octs((250, 152, 35, 196, 62, 67, 81, 13, 227, 66, 32)), 'hex init fails' 116 assert univ.OctetString((1,2,3,4,5)) == ints2octs((1,2,3,4,5)), 'tuple init failed'
|