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

1 2 3 4 5

  /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...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_base64.py 23 eq(base64.encodestring(bytearray('abc')), 'YWJj\n')
39 eq(base64.decodestring(bytearray("YWJj\n")), "abc")
83 eq(base64.b64encode(bytearray('abcd')), 'YWJjZA==')
85 '\xd3V\xbeo\xf7\x1d', altchars=bytearray('*$'))
99 eq(base64.standard_b64encode(bytearray('abcd')), 'YWJjZA==')
103 eq(base64.urlsafe_b64encode(bytearray('\xd3V\xbeo\xf7\x1d')), '01a-b_cd')
122 eq(base64.b64decode(bytearray("YWJj")), "abc")
136 eq(base64.standard_b64decode(bytearray("YWJj")), "abc")
140 eq(base64.urlsafe_b64decode(bytearray('01a-b_cd')), '\xd3V\xbeo\xf7\x1d')
155 eq(base64.b32encode(bytearray('abcd')), 'MFRGGZA='
    [all...]
test_bytes.py 1 """Unit tests for the bytes and bytearray types.
225 # XXX Shouldn't bytes and bytearray agree on what to raise?
242 for f in bytes, bytearray:
259 b = bytearray([0x1a, 0x2b, 0x30])
297 self.assertFalse(bytearray().endswith(b"anything"))
523 type2test = bytearray
526 self.assertRaises(TypeError, hash, bytearray())
538 b = bytearray(20)
557 b = bytearray(b'hello')
560 b = bytearray(b'hello1') # test even number of item
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_base64.py 23 eq(base64.encodestring(bytearray('abc')), 'YWJj\n')
39 eq(base64.decodestring(bytearray("YWJj\n")), "abc")
83 eq(base64.b64encode(bytearray('abcd')), 'YWJjZA==')
85 '\xd3V\xbeo\xf7\x1d', altchars=bytearray('*$'))
99 eq(base64.standard_b64encode(bytearray('abcd')), 'YWJjZA==')
103 eq(base64.urlsafe_b64encode(bytearray('\xd3V\xbeo\xf7\x1d')), '01a-b_cd')
122 eq(base64.b64decode(bytearray("YWJj")), "abc")
136 eq(base64.standard_b64decode(bytearray("YWJj")), "abc")
140 eq(base64.urlsafe_b64decode(bytearray('01a-b_cd')), '\xd3V\xbeo\xf7\x1d')
155 eq(base64.b32encode(bytearray('abcd')), 'MFRGGZA='
    [all...]
test_bytes.py 1 """Unit tests for the bytes and bytearray types.
225 # XXX Shouldn't bytes and bytearray agree on what to raise?
242 for f in bytes, bytearray:
259 b = bytearray([0x1a, 0x2b, 0x30])
297 self.assertFalse(bytearray().endswith(b"anything"))
523 type2test = bytearray
526 self.assertRaises(TypeError, hash, bytearray())
538 b = bytearray(20)
557 b = bytearray(b'hello')
560 b = bytearray(b'hello1') # test even number of item
    [all...]
  /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])
  /external/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)));
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/
test_buffers.py 24 self.assertEqual(len(bytearray(create_string_buffer(0))), 0)
25 self.assertEqual(len(bytearray(create_string_buffer(1))), 1)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/
test_buffers.py 24 self.assertEqual(len(bytearray(create_string_buffer(0))), 0)
25 self.assertEqual(len(bytearray(create_string_buffer(1))), 1)

Completed in 415 milliseconds

1 2 3 4 5