Home
last modified time | relevance | path

Searched refs:raw_bytes (Results 1 – 2 of 2) sorted by relevance

/external/chromium-trace/catapult/third_party/gsutil/third_party/rsa/rsa/
Dtransform.py39 def bytes2int(raw_bytes): argument
51 return int(binascii.hexlify(raw_bytes), 16)
93 raw_bytes = [ZERO_BYTE]
96 raw_bytes = []
106 raw_bytes.insert(0, byte(number & 0xFF))
115 return padding + EMPTY_BYTE.join(raw_bytes)
118 def bytes_leading(raw_bytes, needle=ZERO_BYTE): argument
134 for x in raw_bytes:
185 raw_bytes = b('')
192 raw_bytes = pack(pack_format, num & max_uint) + raw_bytes
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/
Dcrypt.py342 def _urlsafe_b64encode(raw_bytes): argument
343 if isinstance(raw_bytes, six.text_type):
344 raw_bytes = raw_bytes.encode('utf-8')
345 return base64.urlsafe_b64encode(raw_bytes).decode('ascii').rstrip('=')