/external/chromium_org/third_party/tlslite/tlslite/utils/ |
H A D | compat.py | 30 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 D | openssl_rc4.py | 25 return bytearray(m2.rc4_update(self.rc4, plaintext)) 28 return bytearray(self.encrypt(ciphertext))
|
H A D | pycrypto_rc4.py | 24 return bytearray(self.context.encrypt(plaintext)) 28 return bytearray(self.context.decrypt(ciphertext)
|
H A D | pycrypto_aes.py | 25 return bytearray(self.context.encrypt(plaintext)) 29 return bytearray(self.context.decrypt(ciphertext))
|
H A D | pycrypto_tripledes.py | 25 return bytearray(self.context.encrypt(plaintext)) 29 return bytearray(self.context.decrypt(ciphertext)
|
H A D | rsakey.py | 56 @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 D | cryptomath.py | 56 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 D | openssl_aes.py | 38 return bytearray(ciphertext) 52 return bytearray(plaintext)
|
H A D | openssl_tripledes.py | 33 return bytearray(ciphertext) 47 return bytearray(plaintext
|
H A D | pycrypto_rsakey.py | 30 c = bytesToNumber(bytearray(self.rsa.decrypt((s,)))) 35 m = bytesToNumber(bytearray(self.rsa.encrypt(s, None)[0]))
|
H A D | codec.py | 10 self.bytes = bytearray(0) 13 self.bytes += bytearray(length)
|
H A D | openssl_rsakey.py | 64 c = bytesToNumber(bytearray(s)) 70 m = bytesToNumber(bytearray(s))
|
/external/chromium_org/third_party/skia/src/utils/ |
H A D | SkBitmapHasher.cpp | 27 * 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 D | x509.py | 18 @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 D | tlsrecordlayer.py | 280 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 D | verifierdb.py | 92 usernameBytes = bytearray(username, "utf-8") 93 passwordBytes = bytearray(password, "utf-8")
|
H A D | mathtls.py | 24 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 D | messages.py | 106 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 D | session.py | 48 self.masterSecret = bytearray(0) 49 self.sessionID = bytearray(0)
|
/external/lldb/test/python_api/disassemble-raw-data/ |
H A D | TestDisassemble_VST1_64.py | 27 raw_bytes = bytearray([0xf0, 0xb5, 0x03, 0xaf, 46 raw_bytes = bytearray([0x04, 0xf9, 0xed, 0x82])
|
H A D | TestDisassembleRawData.py | 27 raw_bytes = bytearray([0x48, 0x89, 0xe5])
|
/external/skia/src/utils/ |
H A D | SkBitmapHasher.cpp | 27 * 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 D | serialutil.py | 11 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 D | sb_target.py | 28 obj.GetInstructions(lldb.SBAddress(), bytearray())
|
/external/chromium_org/mojo/public/python/mojo/bindings/ |
H A D | messaging.py | 99 self._data = bytearray(self.size) 378 message_receiver.Accept(Message(bytearray(), [])) 381 (result, data, _) = handle.ReadMessage(bytearray(sizes[0]))
|