Searched refs:bytearray (Results 1 - 25 of 52) sorted by relevance

123

/external/chromium_org/third_party/tlslite/tlslite/utils/
H A Dcompat.py30 b = bytearray(binascii.a2b_hex(bytearray(s, "ascii")))
37 b = bytearray(binascii.a2b_base64(bytearray(s, "ascii")))
71 b = bytearray(binascii.a2b_hex(s))
78 b = bytearray(binascii.a2b_base64(s))
H A Dopenssl_rc4.py25 return bytearray(m2.rc4_update(self.rc4, plaintext))
28 return bytearray(self.encrypt(ciphertext))
H A Dpycrypto_rc4.py24 return bytearray(self.context.encrypt(plaintext))
28 return bytearray(self.context.decrypt(ciphertext)
H A Dpycrypto_aes.py25 return bytearray(self.context.encrypt(plaintext))
29 return bytearray(self.context.decrypt(ciphertext))
H A Dpycrypto_tripledes.py25 return bytearray(self.context.encrypt(plaintext))
29 return bytearray(self.context.decrypt(ciphertext)
H A Drsakey.py56 @type bytes: str or L{bytearray} of unsigned bytes
59 @rtype: L{bytearray} of unsigned bytes.
62 hashBytes = SHA1(bytearray(bytes))
72 @type sigBytes: L{bytearray} of unsigned bytes
75 @type bytes: str or L{bytearray} of unsigned bytes
81 hashBytes = SHA1(bytearray(bytes))
96 @type bytes: L{bytearray} of unsigned bytes
99 @rtype: L{bytearray} of unsigned bytes.
117 @type sigBytes: L{bytearray} of unsigned bytes
120 @type bytes: L{bytearray} o
[all...]
H A Dcryptomath.py56 b = bytearray(os.urandom(howMany))
70 return bytearray(hashlib.md5(compat26Str(b)).digest())
73 return bytearray(hashlib.sha1(compat26Str(b)).digest())
78 return bytearray(hmac.new(k, b, hashlib.md5).digest())
83 return bytearray(hmac.new(k, b, hashlib.sha1).digest())
102 """Convert an integer into a bytearray, zero-pad to howManyBytes.
104 The returned bytearray may be smaller than howManyBytes, but will
105 not be larger. The returned bytearray will contain a big-endian
110 b = bytearray(howManyBytes)
119 b = bytearray(mp
[all...]
H A Dopenssl_aes.py38 return bytearray(ciphertext)
52 return bytearray(plaintext)
H A Dopenssl_tripledes.py33 return bytearray(ciphertext)
47 return bytearray(plaintext
H A Dpycrypto_rsakey.py30 c = bytesToNumber(bytearray(self.rsa.decrypt((s,))))
35 m = bytesToNumber(bytearray(self.rsa.encrypt(s, None)[0]))
H A Dcodec.py10 self.bytes = bytearray(0)
13 self.bytes += bytearray(length)
H A Dopenssl_rsakey.py64 c = bytesToNumber(bytearray(s))
70 m = bytesToNumber(bytearray(s))
/external/chromium_org/third_party/skia/src/utils/
H A DSkBitmapHasher.cpp27 * Return the first 8 bytes of a bytearray, encoded as a little-endian uint64.
29 static inline uint64_t first_8_bytes_as_uint64(const uint8_t *bytearray) { argument
30 return SkEndian_SwapLE64(*(reinterpret_cast<const uint64_t *>(bytearray)));
/external/chromium_org/third_party/tlslite/tlslite/
H A Dx509.py18 @type bytes: L{bytearray} of unsigned bytes
24 @type subject: L{bytearray} of unsigned bytes
29 self.bytes = bytearray(0)
49 @type bytes: str or L{bytearray} of unsigned bytes
53 self.bytes = bytearray(bytes)
H A Dtlsrecordlayer.py280 block = bytearray(s[startIndex : endIndex])
574 mac.update(compatHMAC(bytearray([contentType])))
576 mac.update( compatHMAC( bytearray([len(b)//256] )))
577 mac.update( compatHMAC( bytearray([len(b)%256] )))
579 mac.update(compatHMAC( bytearray([self.version[0]] )))
580 mac.update(compatHMAC( bytearray([self.version[1]] )))
581 mac.update( compatHMAC( bytearray([len(b)//256] )))
582 mac.update( compatHMAC( bytearray([len(b)%256] )))
586 macBytes = bytearray(mac.digest())
604 paddingBytes = bytearray([paddingLengt
[all...]
H A Dverifierdb.py92 usernameBytes = bytearray(username, "utf-8")
93 passwordBytes = bytearray(password, "utf-8")
H A Dmathtls.py24 bytes = bytearray(length)
54 bytes = bytearray(length)
57 A = bytearray([ord('A')+x] * (x+1)) # 'A', 'BB', 'CCC', etc..
84 innerHashResult = SHA1(username + bytearray(b":") + password)
145 return bytearray(ohash2.digest())
H A Dmessages.py106 self.random = bytearray(32)
107 self.session_id = bytearray(0)
114 self.server_name = bytearray(0)
129 self.srp_username = bytearray(srpUsername, "utf-8")
133 self.server_name = bytearray(serverName, "utf-8")
147 self.random = bytearray(zeroBytes) + self.random
260 self.random = bytearray(32)
261 self.session_id = bytearray(0)
325 b = bytearray()
329 b += bytearray( [le
[all...]
H A Dsession.py48 self.masterSecret = bytearray(0)
49 self.sessionID = bytearray(0)
/external/lldb/test/python_api/disassemble-raw-data/
H A DTestDisassemble_VST1_64.py27 raw_bytes = bytearray([0xf0, 0xb5, 0x03, 0xaf,
46 raw_bytes = bytearray([0x04, 0xf9, 0xed, 0x82])
H A DTestDisassembleRawData.py27 raw_bytes = bytearray([0x48, 0x89, 0xe5])
/external/skia/src/utils/
H A DSkBitmapHasher.cpp27 * Return the first 8 bytes of a bytearray, encoded as a little-endian uint64.
29 static inline uint64_t first_8_bytes_as_uint64(const uint8_t *bytearray) { argument
30 return SkEndian_SwapLE64(*(reinterpret_cast<const uint64_t *>(bytearray)));
/external/chromium_org/tools/telemetry/third_party/pyserial/serial/
H A Dserialutil.py11 bytearray
17 # bytearray is a mutable type that is easily turned into an instance of
19 class bytearray(list): class in inherits:list
20 # for bytes(bytearray()) usage
22 def __repr__(self): return 'bytearray(%r)' % ''.join(self)
36 return bytearray(list.__getslice__(self, i, j))
40 return bytearray(list.__getitem__(self, item))
46 other = bytearray(other)
69 elif isinstance(seq, bytearray):
74 b = bytearray()
[all...]
/external/lldb/test/python_api/default-constructor/
H A Dsb_target.py28 obj.GetInstructions(lldb.SBAddress(), bytearray())
/external/chromium_org/mojo/public/python/mojo/bindings/
H A Dmessaging.py99 self._data = bytearray(self.size)
378 message_receiver.Accept(Message(bytearray(), []))
381 (result, data, _) = handle.ReadMessage(bytearray(sizes[0]))

Completed in 6597 milliseconds

123