| /external/python/bumble/bumble/ |
| D | crypto.py | 63 cls, d_bytes: bytes, x_bytes: bytes, y_bytes: bytes 89 def dh(self, public_key_x: bytes, public_key_y: bytes) -> bytes: 114 def xor(x: bytes, y: bytes) -> bytes: 120 def reverse(input: bytes) -> bytes: 136 def e(key: bytes, data: bytes) -> bytes: 149 def ah(k: bytes, r: bytes) -> bytes: # pylint: disable=redefined-outer-name 161 k: bytes, 162 r: bytes, 163 preq: bytes, 164 pres: bytes, [all …]
|
| /external/pigweed/pw_transfer/integration_test/ |
| D | proxy_test.py | 49 async def append(list: list[bytes], data: bytes): 85 async def append(list: list[bytes], data: bytes): 111 async def append(list: list[bytes], data: bytes): 150 async def append(list: list[bytes], data: bytes): 201 async def append(list: list[bytes], data: bytes): 238 async def append(list: list[bytes], data: bytes): 272 async def append(list: list[bytes], data: bytes): 330 async def append(list: list[bytes], data: bytes): 426 async def append(list: list[bytes], data: bytes): 518 async def append(list: list[bytes], data: bytes):
|
| D | proxy.py | 82 def __init__(self, send_data: Callable[[bytes], Awaitable[None]]): 86 async def process(self, data: bytes) -> None: 93 async def __call__(self, data: bytes) -> None: 105 def __init__(self, send_data: Callable[[bytes], Awaitable[None]]): 109 async def process(self, data: bytes) -> None: 123 send_data: Callable[[bytes], Awaitable[None]], 136 async def process(self, data: bytes) -> None: 172 send_data: Callable[[bytes], Awaitable[None]], 185 async def process(self, data: bytes) -> None: 218 self, send_data: Callable[[bytes], Awaitable[None]], rate: float [all …]
|
| /external/cronet/third_party/protobuf/js/experimental/runtime/kernel/ |
| D | kernel_test.js | 23 function createArrayBuffer(...bytes) { 60 const bytes = createArrayBuffer(0x08, 0x01); constant 97 const bytes = createArrayBuffer(0x08, 0x01); constant 107 const bytes = createArrayBuffer(0x08, 0x01); constant 132 const bytes = createArrayBuffer(0x08, 0x01); constant 146 const bytes = createArrayBuffer(0x08, 0x01); constant 215 const bytes = createArrayBuffer(0x08, 0x01, 0x10, 0x01); constant 235 const bytes = createArrayBuffer(0x08, 0x01); constant 243 const bytes = createArrayBuffer(0x08, 0x01); constant 249 const bytes = createArrayBuffer(0x08, 0x01); constant [all …]
|
| /external/rust/crates/xml-rs/src/ |
| D | util.rs | 112 let mut bytes = source.bytes(); in next_char_from() localVariable 221 let mut bytes: &[u8] = "correct".as_bytes(); // correct ASCII in test_next_char_from() localVariable 224 let mut bytes: &[u8] = b"\xEF\xBB\xBF\xE2\x80\xA2!"; // BOM in test_next_char_from() localVariable 227 let mut bytes: &[u8] = b"\xEF\xBB\xBFx123"; // BOM in test_next_char_from() localVariable 230 let mut bytes: &[u8] = b"\xEF\xBB\xBF"; // Nothing after BOM in test_next_char_from() localVariable 233 let mut bytes: &[u8] = b"\xEF\xBB"; // Nothing after BO in test_next_char_from() localVariable 236 let mut bytes: &[u8] = b"\xEF\xBB\x42"; // Nothing after BO in test_next_char_from() localVariable 239 let mut bytes: &[u8] = b"\xFE\xFF\x00\x42"; // UTF-16 in test_next_char_from() localVariable 242 let mut bytes: &[u8] = b"\xFF\xFE\x42\x00"; // UTF-16 in test_next_char_from() localVariable 245 let mut bytes: &[u8] = b"\xFF\xFE"; // UTF-16 in test_next_char_from() localVariable [all …]
|
| /external/kotlinx.serialization/formats/cbor/commonTest/src/kotlinx/serialization/cbor/ |
| D | CborNumberEncodingTest.kt | 110 val bytes = listOf(24, 255).map { it.toByte() } in testEncodingLargestPositive8BitNumber() constant 119 val bytes = listOf(24, 255).map { it.toByte() }.toByteArray() in testDecodingLargestPositive8BitNumber() constant 128 val bytes = listOf(56, 255).map { it.toByte() } in testEncodingLargestNegative8BitNumber() constant 137 val bytes = listOf(56, 255).map { it.toByte() }.toByteArray() in testDecodingLargestNegative8BitNumber() constant 146 val bytes = listOf(25, 255, 255).map { it.toByte() } in testEncodingLargestPositive16BitNumber() constant 155 val bytes = listOf(25, 255, 255).map { it.toByte() }.toByteArray() in testDecodingLargestPositive16BitNumber() constant 164 val bytes = listOf(57, 255, 255).map { it.toByte() } in testEncodingLargestNegative16BitNumber() constant 173 val bytes = listOf(57, 255, 255).map { it.toByte() }.toByteArray() in testDecodingLargestNegative16BitNumber() constant 182 val bytes = listOf(26, 255, 255, 255, 255).map { it.toByte() } in testEncodingLargestPositive32BitNumber() constant 191 val bytes = listOf(26, 255, 255, 255, 255).map { it.toByte() }.toByteArray() in testDecodingLargestPositive32BitNumber() constant [all …]
|
| /external/tink/testing/cross_language/util/ |
| D | _primitives.py | 56 private_keyset: bytes) -> bytes: 66 keyset: bytes) -> str: 85 encrypted_keyset: bytes, master_keyset: bytes, 86 associated_data: Optional[bytes], 102 def keyset_write_encrypted(stub: testing_api_pb2_grpc.KeysetStub, keyset: bytes, 103 master_keyset: bytes, 104 associated_data: Optional[bytes], 130 keyset: bytes) -> str: 142 keyset: bytes, annotations: Optional[Dict[str, str]]) -> None: 155 def encrypt(self, plaintext: bytes, associated_data: bytes) -> bytes: [all …]
|
| /external/tink/python/tink/testing/ |
| D | helper.py | 55 value: bytes = b'fakevalue', 80 def compute_mac(self, data: bytes) -> bytes: 83 def verify_mac(self, mac_value: bytes, data: bytes) -> None: 94 def encrypt(self, plaintext: bytes, associated_data: bytes) -> bytes: 97 def decrypt(self, ciphertext: bytes, associated_data: bytes) -> bytes: 112 def encrypt_deterministically(self, plaintext: bytes, 113 associated_data: bytes) -> bytes: 116 def decrypt_deterministically(self, ciphertext: bytes, 117 associated_data: bytes) -> bytes: 133 def decrypt(self, ciphertext: bytes, context_info: bytes) -> bytes: [all …]
|
| /external/cbor-java/src/test/java/co/nstant/in/cbor/encoder/ |
| D | AbstractEncoderTest.java | 68 assertEquals((byte) 0x9B, bytes[0]); in shallEncode32bit() local 69 assertEquals((byte) 0x00, bytes[1]); in shallEncode32bit() local 70 assertEquals((byte) 0x00, bytes[2]); in shallEncode32bit() local 71 assertEquals((byte) 0x00, bytes[3]); in shallEncode32bit() local 72 assertEquals((byte) 0x01, bytes[4]); in shallEncode32bit() local 73 assertEquals((byte) 0x00, bytes[5]); in shallEncode32bit() local 74 assertEquals((byte) 0x00, bytes[6]); in shallEncode32bit() local 75 assertEquals((byte) 0x00, bytes[7]); in shallEncode32bit() local 76 assertEquals((byte) 0x00, bytes[8]); in shallEncode32bit() local
|
| /external/rust/crates/ciborium/tests/ |
| D | recursion.rs | 16 let bytes = [0x9f; 128 * 1024]; in array() localVariable 25 let bytes = [0xbf; 128 * 1024]; in map() localVariable 33 fn bytes() { in bytes() function 34 let bytes = [0x5f; 128 * 1024]; in bytes() localVariable 43 let bytes = [0x7f; 128 * 1024]; in text() localVariable 52 let bytes = [0x9f; 128 * 1024]; in array_limit() localVariable 74 let bytes = [0xbf; 128 * 1024]; in map_limit() localVariable
|
| /external/python/rsa/rsa/ |
| D | pkcs1.py | 84 def _pad_for_encryption(message: bytes, target_length: int) -> bytes: 130 def _pad_for_signing(message: bytes, target_length: int) -> bytes: 164 def encrypt(message: bytes, pub_key: key.PublicKey) -> bytes: 196 def decrypt(crypto: bytes, priv_key: key.PrivateKey) -> bytes: 279 def sign_hash(hash_value: bytes, priv_key: key.PrivateKey, hash_method: str) -> bytes: 312 def sign(message: bytes, priv_key: key.PrivateKey, hash_method: str) -> bytes: 334 def verify(message: bytes, signature: bytes, pub_key: key.PublicKey) -> str: 372 def find_signature_hash(signature: bytes, pub_key: key.PublicKey) -> str: 412 def compute_hash(message: typing.Union[bytes, typing.BinaryIO], method_name: str) -> bytes: 440 def _find_method_hash(clearsig: bytes) -> str:
|
| /external/kotlinx.serialization/formats/protobuf/commonTest/src/kotlinx/serialization/protobuf/ |
| D | ProtobufAbsenceTest.kt | 46 val bytes = ProtoBuf.encodeToByteArray(DefaultValue(42)) in testDefaultValue() constant 55 val bytes = ProtoBuf.encodeToByteArray(NullableValue(null)) in testNullableValue() constant 66 val bytes = ProtoBuf.encodeToByteArray(DefaultAndNullValue(42)) in testDefaultAndNullValue() constant 76 val bytes = ProtoBuf.encodeToByteArray(SimpleList(emptyList())) in testSimpleList() constant 85 val bytes = ProtoBuf.encodeToByteArray(DefaultList(listOf(42))) in testDefaultList() constant 96 val bytes = ProtoBuf.encodeToByteArray(NullableList(emptyList())) in testNullableList() constant 108 val bytes = ProtoBuf.encodeToByteArray(DefaultNullableList(listOf(42))) in testDefaultNullableList() constant 117 val bytes = ProtoBuf.encodeToByteArray(SimpleMap(emptyMap())) in testSimpleMap() constant 125 val bytes = ProtoBuf.encodeToByteArray(DefaultMap(mapOf(42 to 43))) in testDefaultMap() constant 135 val bytes = ProtoBuf.encodeToByteArray(NullableMap(emptyMap())) in testNullableMap() constant [all …]
|
| /external/rust/crates/bitreader/src/ |
| D | tests.rs | 13 let bytes = &[ in read_buffer() localVariable 129 let bytes = &[ in try_all_sizes() localVariable 162 let bytes = &[ in skipping_and_zero_reads() localVariable 184 let bytes = &[ in errors() localVariable 214 let bytes = &[ in signed_values() localVariable 227 let bytes: Vec<u8> = (0..16).collect(); in boolean_values() localVariable 241 let bytes = &[ in read_slice() localVariable 272 let bytes = &[ in read_slice_too_much() localVariable 290 let bytes = &[ in relative_reader() localVariable 321 let bytes = &[0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF]; in test_read_u64_max() localVariable [all …]
|
| /external/pigweed/pw_tokenizer/py/pw_tokenizer/ |
| D | detokenize.py | 95 def _token_regex(prefix: bytes) -> Pattern[bytes]: 119 encoded_message: bytes, 258 encoded_message: bytes, 259 prefix: str | bytes = NESTED_TOKEN_PREFIX, 294 prefix: str | bytes = NESTED_TOKEN_PREFIX, 313 prefix: str | bytes = NESTED_TOKEN_PREFIX, 323 prefix: str | bytes = NESTED_TOKEN_PREFIX, 334 prefix: str | bytes = NESTED_TOKEN_PREFIX, 344 prefix: str | bytes = NESTED_TOKEN_PREFIX, 349 def transform(data: bytes) -> bytes: [all …]
|
| /external/python/bumble/bumble/profiles/ |
| D | csip.py | 54 def s1(m: bytes) -> bytes: 61 def k1(n: bytes, salt: bytes, p: bytes) -> bytes: 69 def sef(k: bytes, r: bytes) -> bytes: 80 def sih(k: bytes, r: bytes) -> bytes: 87 def generate_rsi(sirk: bytes) -> bytes: 109 set_identity_resolving_key: bytes,
|
| /external/rust/crates/rustix/src/backend/linux_raw/net/ |
| D | read_sockaddr.rs | 99 let bytes = &decode.sun_path[1..len - offsetof_sun_path]; in read_sockaddr() localVariable 102 let bytes = slice::from_raw_parts(bytes.as_ptr().cast::<u8>(), bytes.len()); in read_sockaddr() localVariable 108 let bytes = &decode.sun_path[..len - 1 - offsetof_sun_path]; in read_sockaddr() localVariable 111 let bytes = slice::from_raw_parts(bytes.as_ptr().cast::<u8>(), bytes.len()); in read_sockaddr() localVariable 189 let bytes = &decode.sun_path[1..len - offsetof_sun_path]; in read_sockaddr_os() localVariable 192 let bytes = slice::from_raw_parts(bytes.as_ptr().cast::<u8>(), bytes.len()); in read_sockaddr_os() localVariable 200 let bytes = &decode.sun_path[..len - 1 - offsetof_sun_path]; in read_sockaddr_os() localVariable 203 let bytes = slice::from_raw_parts(bytes.as_ptr().cast::<u8>(), bytes.len()); in read_sockaddr_os() localVariable
|
| /external/rust/pica/py/pica/pica/packets/ |
| D | uci.py | 15 def parse_all(cls, span: bytes) -> 'Packet': 486 def parse(span: bytes) -> Tuple['RangingRoundControl', bytes]: 499 def serialize(self, payload: bytes = None) -> bytes: 721 def parse(span: bytes) -> Tuple['ResultReportConfig', bytes]: 732 def serialize(self, payload: bytes = None) -> bytes: 1003 def parse(span: bytes) -> Tuple['CommonPacketHeader', bytes]: 1012 def serialize(self, payload: bytes = None) -> bytes: 1035 def parse(span: bytes) -> Tuple['ControlPacketHeader', bytes]: 1046 def serialize(self, payload: bytes = None) -> bytes: 1074 def parse(span: bytes) -> Tuple['DataPacketHeader', bytes]: [all …]
|
| /external/protobuf/java/core/src/main/java/com/google/protobuf/ |
| D | CodedInputStreamReader.java | 312 final int bytes = input.readUInt32(); in readDoubleList() local 338 final int bytes = input.readUInt32(); in readDoubleList() local 370 final int bytes = input.readUInt32(); in readFloatList() local 396 final int bytes = input.readUInt32(); in readFloatList() local 428 final int bytes = input.readUInt32(); in readUInt64List() local 454 final int bytes = input.readUInt32(); in readUInt64List() local 486 final int bytes = input.readUInt32(); in readInt64List() local 512 final int bytes = input.readUInt32(); in readInt64List() local 544 final int bytes = input.readUInt32(); in readInt32List() local 570 final int bytes = input.readUInt32(); in readInt32List() local [all …]
|
| /external/cronet/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
| D | CodedInputStreamReader.java | 312 final int bytes = input.readUInt32(); in readDoubleList() local 338 final int bytes = input.readUInt32(); in readDoubleList() local 370 final int bytes = input.readUInt32(); in readFloatList() local 396 final int bytes = input.readUInt32(); in readFloatList() local 428 final int bytes = input.readUInt32(); in readUInt64List() local 454 final int bytes = input.readUInt32(); in readUInt64List() local 486 final int bytes = input.readUInt32(); in readInt64List() local 512 final int bytes = input.readUInt32(); in readInt64List() local 544 final int bytes = input.readUInt32(); in readInt32List() local 570 final int bytes = input.readUInt32(); in readInt32List() local [all …]
|
| /external/tink/python/tink/ |
| D | _keyset_handle_test.py | 35 def encrypt(self, plaintext: bytes, associated_data: bytes) -> bytes: 38 def decrypt(self, plaintext: bytes, associated_data: bytes) -> bytes: 44 def encrypt(self, plaintext: bytes, associated_data: bytes) -> bytes: 47 def decrypt(self, plaintext: bytes, associated_data: bytes) -> bytes: 53 def encrypt(self, plaintext: bytes, associated_data: bytes) -> bytes: 56 def decrypt(self, plaintext: bytes, associated_data: bytes) -> bytes:
|
| /external/webrtc/rtc_base/ |
| D | bitstream_reader_unittest.cc | 30 const uint8_t bytes[32] = {}; in TEST() local 42 const uint8_t bytes[32] = {}; in TEST() local 54 const uint8_t bytes[32] = {}; in TEST() local 79 const uint8_t bytes[1] = {}; in TEST() local 89 const uint8_t bytes[] = {0b0100'0001, 0b1011'0001}; in TEST() local 120 const uint8_t bytes[] = {0b1010'1010}; in TEST() local 128 const uint8_t bytes[] = {0x0A, // in TEST() local 141 const uint8_t bytes[] = {0x0A, 0xBC, 0xDE, 0xF1, 0x23, in TEST() local 170 const uint8_t bytes[] = {0x1F, 0xDB, 0x97, 0x53, 0x0E, 0xCA, 0x86, 0x42}; in TEST() local 186 const uint8_t bytes[] = {0b010'01'101, 0b0011'00'1'0}; in TEST() local [all …]
|
| /external/pigweed/pw_allocator/ |
| D | block_test.cc | 53 alignas(BlockType::kAlignment) std::array<std::byte, kN> bytes; in TEST_FOR_EACH_BLOCK_TYPE() local 71 alignas(BlockType::kAlignment) std::array<std::byte, kN> bytes; in TEST_FOR_EACH_BLOCK_TYPE() local 79 std::array<std::byte, 2> bytes; in TEST_FOR_EACH_BLOCK_TYPE() local 89 alignas(BlockType::kAlignment) std::array<std::byte, kN> bytes; in TEST() local 98 alignas(BlockType::kAlignment) std::array<std::byte, kN> bytes; in TEST_FOR_EACH_BLOCK_TYPE() local 123 alignas(BlockType::kAlignment) std::array<std::byte, kN> bytes; in TEST_FOR_EACH_BLOCK_TYPE() local 163 alignas(BlockType::kAlignment) std::array<std::byte, kN> bytes; in TEST_FOR_EACH_BLOCK_TYPE() local 186 alignas(BlockType::kAlignment) std::array<std::byte, kN> bytes; in TEST_FOR_EACH_BLOCK_TYPE() local 199 alignas(BlockType::kAlignment) std::array<std::byte, kN> bytes; in TEST_FOR_EACH_BLOCK_TYPE() local 218 alignas(BlockType::kAlignment) std::array<std::byte, kN> bytes; in TEST_FOR_EACH_BLOCK_TYPE() local [all …]
|
| /external/sl4a/Common/src/org/apache/commons/codec/binary/ |
| D | StringUtils.java | 183 public static String newString(byte[] bytes, String charsetName) { in newString() 204 public static String newStringIso8859_1(byte[] bytes) { in newStringIso8859_1() 218 public static String newStringUsAscii(byte[] bytes) { in newStringUsAscii() 232 public static String newStringUtf16(byte[] bytes) { in newStringUtf16() 246 public static String newStringUtf16Be(byte[] bytes) { in newStringUtf16Be() 260 public static String newStringUtf16Le(byte[] bytes) { in newStringUtf16Le() 274 public static String newStringUtf8(byte[] bytes) { in newStringUtf8()
|
| /external/pigweed/pw_software_update/py/pw_software_update/ |
| D | keys.py | 98 def import_ecdsa_public_key(pem: bytes) -> KeyMapping: 126 def create_ecdsa_signature(data: bytes, key: bytes) -> Signature: 152 def verify_ecdsa_signature(sig: bytes, data: bytes, key: Key) -> bool:
|
| /external/tink/python/tink/jwt/ |
| D | _jwt_format.py | 32 def base64_encode(data: bytes) -> bytes: 49 def base64_decode(encoded_data: bytes) -> bytes: 77 def decode_header(encoded_header: bytes) -> str: 92 def decode_payload(encoded_payload: bytes) -> str: 100 def encode_signature(signature: bytes) -> bytes: 105 def decode_signature(encoded_signature: bytes) -> bytes: 207 def create_signed_compact(unsigned_compact: bytes, signature: bytes) -> str:
|