Home
last modified time | relevance | path

Searched refs:octets (Results 1 – 25 of 88) sorted by relevance

1234

/external/python/pyasn1/tests/compat/
Dtest_octets.py16 from pyasn1.compat import octets
24 assert [1, 2, 3] == list(octets.ints2octs([1, 2, 3]))
27 assert not octets.ints2octs([])
30 assert [12] == list(octets.int2oct(12))
33 assert [1, 2, 3] == list(octets.octs2ints(bytes([1, 2, 3])))
36 assert not octets.octs2ints(bytes([]))
39 assert 12 == octets.oct2int(bytes([12]))[0]
42 assert bytes([1, 2, 3]) == octets.str2octs('\x01\x02\x03')
45 assert not octets.str2octs('')
48 assert '\x01\x02\x03' == octets.octs2str(bytes([1, 2, 3]))
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/
DASN1ApplicationSpecific.java18 protected final byte[] octets; field in ASN1ApplicationSpecific
23 byte[] octets) in ASN1ApplicationSpecific() argument
27 this.octets = Arrays.clone(octets); in ASN1ApplicationSpecific()
99 return Arrays.clone(octets); in getContents()
153 …StreamUtil.calculateTagLength(tag) + StreamUtil.calculateBodyLength(octets.length) + octets.length; in encodedLength()
167 out.writeEncoded(classBits, tag, octets); in encode()
182 && Arrays.areEqual(octets, other.octets); in asn1Equals()
187 return (isConstructed ? 1 : 0) ^ tag ^ Arrays.hashCode(octets); in hashCode()
236 if (this.octets != null) in toString()
239 sb.append(Hex.toHexString(this.octets)); in toString()
DDERApplicationSpecific.java17 byte[] octets) in DERApplicationSpecific() argument
19 super(isConstructed, tag, octets); in DERApplicationSpecific()
31 byte[] octets) in DERApplicationSpecific() argument
33 this(false, tag, octets); in DERApplicationSpecific()
124 out.writeEncoded(classBits, tag, octets); in encode()
DDLApplicationSpecific.java17 byte[] octets) in DLApplicationSpecific() argument
19 super(isConstructed, tag, octets); in DLApplicationSpecific()
31 byte[] octets) in DLApplicationSpecific() argument
33 this(false, tag, octets); in DLApplicationSpecific()
124 out.writeEncoded(classBits, tag, octets); in encode()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DASN1ApplicationSpecific.java16 protected final byte[] octets; field in ASN1ApplicationSpecific
21 byte[] octets) in ASN1ApplicationSpecific() argument
25 this.octets = Arrays.clone(octets); in ASN1ApplicationSpecific()
97 return Arrays.clone(octets); in getContents()
151 …StreamUtil.calculateTagLength(tag) + StreamUtil.calculateBodyLength(octets.length) + octets.length; in encodedLength()
165 out.writeEncoded(classBits, tag, octets); in encode()
180 && Arrays.areEqual(octets, other.octets); in asn1Equals()
185 return (isConstructed ? 1 : 0) ^ tag ^ Arrays.hashCode(octets); in hashCode()
234 if (this.octets != null) in toString()
237 sb.append(Hex.toHexString(this.octets)); in toString()
DDLApplicationSpecific.java15 byte[] octets) in DLApplicationSpecific() argument
17 super(isConstructed, tag, octets); in DLApplicationSpecific()
29 byte[] octets) in DLApplicationSpecific() argument
31 this(false, tag, octets); in DLApplicationSpecific()
122 out.writeEncoded(classBits, tag, octets); in encode()
DDERApplicationSpecific.java15 byte[] octets) in DERApplicationSpecific() argument
17 super(isConstructed, tag, octets); in DERApplicationSpecific()
29 byte[] octets) in DERApplicationSpecific() argument
31 this(false, tag, octets); in DERApplicationSpecific()
122 out.writeEncoded(classBits, tag, octets); in encode()
/external/tcpdump/tests/
Dsflow_multiple_counter_30_pdus.out7 In octets 820721, unicast pkts 9601, multicast pkts 0, broadcast pkts 1302, discards 0
9 … Out octets 178785248, unicast pkts 9736, multicast pkts 132958, broadcast pkts 2213534, discards 0
19 … In octets 156084746, unicast pkts 473593, multicast pkts 0, broadcast pkts 1862745, discards 0
21 … Out octets 59635889, unicast pkts 8834, multicast pkts 132958, broadcast pkts 352092, discards 0
31 … In octets 3051593057, unicast pkts 52919488, multicast pkts 1491, broadcast pkts 956, discards 0
33 …Out octets 1525716840, unicast pkts 30013667, multicast pkts 131467, broadcast pkts 2213880, disca…
43 In octets 0, unicast pkts 0, multicast pkts 0, broadcast pkts 0, discards 0
45 … Out octets 178404732, unicast pkts 3035, multicast pkts 132958, broadcast pkts 2214836, discards 0
55 In octets 0, unicast pkts 0, multicast pkts 0, broadcast pkts 0, discards 0
57 … Out octets 178368955, unicast pkts 3031, multicast pkts 132840, broadcast pkts 2214791, discards 0
[all …]
Dloopback.out1 Loopback, skipCount 0, Forward Data, forwarding address aa:00:04:00:1d:04, data (44 octets)
2 Loopback, skipCount 8, Reply, receipt number 1, data (40 octets)
3 Loopback, skipCount 0, Forward Data, forwarding address aa:00:04:00:6a:04, data (60 octets)
4 Loopback, skipCount 8, Forward Data, forwarding address aa:00:04:00:69:04, data (52 octets)
5 Loopback, skipCount 16, Forward Data, forwarding address aa:00:04:00:1d:04, data (44 octets)
6 Loopback, skipCount 24, Reply, receipt number 2, data (40 octets)
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
DIPAddress.java50 int octets = 0; in isValidIPv4() local
59 if (octets == 4) in isValidIPv4()
76 octets++; in isValidIPv4()
79 return octets == 4; in isValidIPv4()
132 int octets = 0; in isValidIPv6() local
141 if (octets == 8) in isValidIPv6()
157 octets++; // add an extra one as address covers 2 words. in isValidIPv6()
184 octets++; in isValidIPv6()
187 return octets == 8 || doubleColonFound; in isValidIPv6()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/util/
DIPAddress.java52 int octets = 0; in isValidIPv4() local
61 if (octets == 4) in isValidIPv4()
78 octets++; in isValidIPv4()
81 return octets == 4; in isValidIPv4()
134 int octets = 0; in isValidIPv6() local
143 if (octets == 8) in isValidIPv6()
159 octets++; // add an extra one as address covers 2 words. in isValidIPv6()
186 octets++; in isValidIPv6()
189 return octets == 8 || doubleColonFound; in isValidIPv6()
/external/python/pyasn1/pyasn1/compat/
Dinteger.py17 from pyasn1.compat.octets import oct2int, null, ensureString
25 def from_bytes(octets, signed=False): argument
26 if not octets:
29 value = long(b2a_hex(ensureString(octets)), 16)
31 if signed and oct2int(octets[0]) & 0x80:
32 return value - (1 << len(octets) * 8)
98 def from_bytes(octets, signed=False): argument
99 return int.from_bytes(bytes(octets), 'big', signed=signed)
/external/ImageMagick/MagickCore/
Dtoken-private.h95 static inline int GetNextUTFCode(const char *text,unsigned int *octets) in GetNextUTFCode() argument
107 *octets=1; in GetNextUTFCode()
122 *octets=(unsigned int) (i+1); in GetNextUTFCode()
139 octets; in GetUTFCode() local
141 return(GetNextUTFCode(text,&octets)); in GetUTFCode()
147 octets; in GetUTFOctets() local
149 (void) GetNextUTFCode(text,&octets); in GetUTFOctets()
150 return(octets); in GetUTFOctets()
/external/autotest/client/common_lib/cros/network/
Dnetblock.py56 def _octets_to_addr(octets): argument
63 return '.'.join(map(str, octets))
99 octets = [a & m for a, m in zip(self._octets, self._mask_octets)]
100 return self._octets_to_addr(octets)
106 octets = [a | (m ^ 0xff)
108 return self._octets_to_addr(octets)
141 octets = [(a & m) + o
143 return self._octets_to_addr(octets)
/external/libnl/lib/route/link/
Dinet6.c337 double octets; in inet6_dump_stats() local
344 octets = nl_cancel_down_bytes(link->l_stats[RTNL_LINK_IP6_INOCTETS], in inet6_dump_stats()
346 if (octets) in inet6_dump_stats()
347 nl_dump(p, "%14.2f %3s ", octets, octetsUnit); in inet6_dump_stats()
360 octets = nl_cancel_down_bytes(link->l_stats[RTNL_LINK_IP6_OUTOCTETS], in inet6_dump_stats()
362 if (octets) in inet6_dump_stats()
363 nl_dump(p, "%14.2f %3s ", octets, octetsUnit); in inet6_dump_stats()
376 octets = nl_cancel_down_bytes(link->l_stats[RTNL_LINK_IP6_INMCASTOCTETS], in inet6_dump_stats()
378 if (octets) in inet6_dump_stats()
379 nl_dump(p, "%14.2f %3s ", octets, octetsUnit); in inet6_dump_stats()
[all …]
/external/python/cpython2/Lib/
Dpoplib.py117 octets = len(line)
122 return line[:-2], octets
124 return line[1:-1], octets
125 return line[:-1], octets
144 list = []; octets = 0
150 octets = octets + o
153 return resp, list, octets
383 octets = len(line)
385 return line[:-2], octets
387 return line[1:-1], octets
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
DX9ECPoint.java68 byte[] octets = encoding.getOctets(); in isPointCompressed()
69 return octets != null && octets.length > 0 && (octets[0] == 2 || octets[0] == 3); in isPointCompressed()
/external/python/pyasn1/pyasn1/codec/cer/
Dencoder.py9 from pyasn1.compat.octets import str2octs, null
52 octets = value.asOctets()
54 if not self.minLength < len(octets) < self.maxLength:
57 if self.pluschar in octets or self.minuschar in octets:
58 raise error.PyAsn1Error('Must be UTC time: %r' % octets)
60 if octets[-1] != self.zchar:
61 raise error.PyAsn1Error('Missing "Z" time zone specifier: %r' % octets)
63 if self.commachar in octets:
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x9/
DX9ECPoint.java70 byte[] octets = encoding.getOctets(); in isPointCompressed()
71 return octets != null && octets.length > 0 && (octets[0] == 2 || octets[0] == 3); in isPointCompressed()
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/external/com/google/gdata/util/common/base/
DPercentEscaper.java151 boolean[] octets = new boolean[maxChar + 1]; in createSafeOctets()
153 octets[c] = true; in createSafeOctets()
156 octets[c] = true; in createSafeOctets()
159 octets[c] = true; in createSafeOctets()
162 octets[c] = true; in createSafeOctets()
164 return octets; in createSafeOctets()
/external/python/cpython3/Lib/
Dpoplib.py134 octets = len(line)
139 return line[:-2], octets
141 return line[1:-1], octets
142 return line[:-1], octets
160 list = []; octets = 0
166 octets = octets + o
169 return resp, list, octets
473 (header, msg, octets) = a.retr(i)
/external/curl/lib/
Dinet_pton.c96 int saw_digit, octets, ch; in inet_pton4() local
100 octets = 0; in inet_pton4()
116 if(++octets > 4) in inet_pton4()
122 if(octets == 4) in inet_pton4()
130 if(octets < 4) in inet_pton4()
/external/wpa_supplicant_8/hostapd/
Dhostapd.sim_db4 # Kc: hex, 8 octets
5 # SRES: hex, 4 octets
6 # RAND: hex, 16 octets
/external/v8/src/
Duri.cc37 bool IsReplacementCharacter(const uint8_t* octets, int length) { in IsReplacementCharacter() argument
40 if (length != 3 || octets[0] != 0xEF || octets[1] != 0xBF || in IsReplacementCharacter()
41 octets[2] != 0xBD) { in IsReplacementCharacter()
47 bool DecodeOctets(const uint8_t* octets, int length, in DecodeOctets() argument
50 uc32 value = unibrow::Utf8::ValueOf(octets, length, &cursor); in DecodeOctets()
52 !IsReplacementCharacter(octets, length)) { in DecodeOctets()
106 uint8_t octets[unibrow::Utf8::kMaxEncodedSize]; in IntoTwoByte() local
107 octets[0] = decoded; in IntoTwoByte()
121 octets[number_of_continuation_bytes] = continuation_byte; in IntoTwoByte()
124 if (!DecodeOctets(octets, number_of_continuation_bytes, buffer)) { in IntoTwoByte()
/external/python/pyasn1/pyasn1/
Ddebug.py11 from pyasn1.compat.octets import octs2ints
125 def hexdump(octets): argument
128 for n, x in zip(range(len(octets)), octs2ints(octets))]

1234