HomeSort by relevance Sort by last modified time
    Searched refs:bytearray (Results 1 - 25 of 53) sorted by null

1 2 3

  /external/chromium_org/third_party/tlslite/tlslite/utils/
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))
openssl_rc4.py 25 return bytearray(m2.rc4_update(self.rc4, plaintext))
28 return bytearray(self.encrypt(ciphertext))
pycrypto_aes.py 25 return bytearray(self.context.encrypt(plaintext))
29 return bytearray(self.context.decrypt(ciphertext))
pycrypto_rc4.py 24 return bytearray(self.context.encrypt(plaintext))
28 return bytearray(self.context.decrypt(ciphertext)
pycrypto_tripledes.py 25 return bytearray(self.context.encrypt(plaintext))
29 return bytearray(self.context.decrypt(ciphertext)
openssl_aes.py 38 return bytearray(ciphertext)
52 return bytearray(plaintext)
openssl_tripledes.py 33 return bytearray(ciphertext)
47 return bytearray(plaintext
pycrypto_rsakey.py 30 c = bytesToNumber(bytearray(self.rsa.decrypt((s,))))
35 m = bytesToNumber(bytearray(self.rsa.encrypt(s, None)[0]))
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(mpi[4:]
    [all...]
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} of unsigned byte
    [all...]
codec.py 10 self.bytes = bytearray(0)
13 self.bytes += bytearray(length)
openssl_rsakey.py 64 c = bytesToNumber(bytearray(s))
70 m = bytesToNumber(bytearray(s))
  /external/chromium_org/third_party/skia/src/utils/
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) {
30 return SkEndian_SwapLE64(*(reinterpret_cast<const uint64_t *>(bytearray)));
  /external/chromium_org/third_party/tlslite/tlslite/
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)
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([paddingLength] * (paddingLength+1)
    [all...]
verifierdb.py 92 usernameBytes = bytearray(username, "utf-8")
93 passwordBytes = bytearray(password, "utf-8")
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())
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( [len(e)] ) + bytearray(e
    [all...]
session.py 48 self.masterSecret = bytearray(0)
49 self.sessionID = bytearray(0)
  /external/lldb/test/python_api/disassemble-raw-data/
TestDisassemble_VST1_64.py 27 raw_bytes = bytearray([0xf0, 0xb5, 0x03, 0xaf,
46 raw_bytes = bytearray([0x04, 0xf9, 0xed, 0x82])
TestDisassembleRawData.py 27 raw_bytes = bytearray([0x48, 0x89, 0xe5])
  /external/chromium_org/tools/telemetry/third_party/pyserial/serial/
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/chromium_org/third_party/cython/src/Cython/Utility/
StringTools.c 277 (PyErr_SetString(PyExc_IndexError, "bytearray index out of range"), -1))
293 PyErr_SetString(PyExc_IndexError, "bytearray index out of range");
307 (PyErr_SetString(PyExc_IndexError, "bytearray index out of range"), -1))
324 PyErr_SetString(PyExc_IndexError, "bytearray index out of range");
725 static CYTHON_INLINE int __Pyx_PyByteArray_AppendObject(PyObject* bytearray, PyObject* value);
730 static CYTHON_INLINE int __Pyx_PyByteArray_AppendObject(PyObject* bytearray, PyObject* value) {
751 return __Pyx_PyByteArray_Append(bytearray, ival);
756 static CYTHON_INLINE int __Pyx_PyByteArray_Append(PyObject* bytearray, int value);
761 static CYTHON_INLINE int __Pyx_PyByteArray_Append(PyObject* bytearray, int value) {
765 Py_ssize_t n = Py_SIZE(bytearray);
    [all...]
  /external/chromium_org/tools/telemetry/telemetry/core/
bitmap.py 138 if type(pixels) is not bytearray:
139 pixels = bytearray(pixels)
223 if type(self._pixels) is not bytearray:
224 self._pixels = bytearray(self._pixels)
  /external/lldb/test/python_api/default-constructor/
sb_target.py 28 obj.GetInstructions(lldb.SBAddress(), bytearray())

Completed in 482 milliseconds

1 2 3