Home
last modified time | relevance | path

Searched refs:encode (Results 1 – 25 of 36) sorted by relevance

12

/system/keymaster/cppcose/
Dcppcose.cpp74 .add(cppbor::Map().add(ALGORITHM, HMAC_256).canonicalize().encode()) in generateCoseMac0Mac()
77 .encode(); in generateCoseMac0Mac()
93 .add(cppbor::Map().add(ALGORITHM, HMAC_256).canonicalize().encode()) in constructCoseMac0()
144 .encode(); in createCoseSign1Signature()
157 bytevec protParms = protectedParams.add(ALGORITHM, EDDSA).canonicalize().encode(); in constructCoseSign1()
212 cppbor::Array().add("Signature1").add(*protectedParams).add(aad).add(*payload).encode(); in verifyAndParseCoseSign1()
230 .encode(), in createCoseEncryptCiphertext()
243 .encode(); in constructCoseEncrypt()
365 .encode(); in decryptCoseEncrypt()
394 .encode(); in x25519_HKDF_DeriveKey()
/system/extras/verity/fec/tests/
Dfec.py44 def encode(image, fec, roots): function
70 encode(image, temp_fec.name, roots)
/system/keymaster/contexts/
Dpure_soft_remote_provisioning_context.cpp111 .add(-4670552 /* Subject Pub Key */, coseKey.encode()) in GenerateBcc()
115 .encode(); in GenerateBcc()
/system/bt/vendor_libs/test_vendor_lib/scripts/
Dtest_channel.py77 self._socket.sendall(data.encode())
128 name.encode()
130 arg.encode()
Dsimple_link_layer_socket.py135 name.encode('utf-8')
137 arg.encode('utf-8')
Dsend_simple_commands.py152 name.encode('utf-8')
154 arg.encode('utf-8')
/system/chre/apps/test/common/chre_cross_validator_sensor/src/
Dchre_cross_validator_sensor_manager.cc135 .values = {.funcs = {.encode = encodeFunc}, in makeDatapoint()
444 .funcs = {.encode = encodeThreeAxisSensorDatapoints}, in makeSensorThreeAxisData()
464 .funcs = {.encode = encodeFloatSensorDatapoints}, in makeSensorFloatData()
484 .funcs = {.encode = encodeProximitySensorDatapoints}, in makeSensorProximityData()
504 .funcs = {.encode = encodeStepCounterSensorDatapoints}, in makeSensorStepCounterData()
/system/bt/tools/scripts/
Dbtsnoop_live.py191 conn_str.encode('ascii', 'ignore'), config_str.encode('ascii', 'ignore'), byref(success))
/system/chre/apps/test/common/shared/src/
Dsend_message.cc59 result.errorMessage = {.funcs = {.encode = encodeErrorMessage}, in sendTestResultWithMsgToHost()
/system/bt/gd/neighbor/cert/
Dpy_neighbor.py83 … address=remote_address.encode('utf8'), page_scan_repetition_mode=1, clock_offset=0x6855))
Dneighbor_test.py40 self.cert_name += b'@' + self.cert_address.encode('utf8')
/system/keymaster/android_keymaster/
Dremote_provisioning_utils.cpp189 return pubKeysToMac.encode(); in validateAndExtractPubkeys()
199 .encode()) in buildCertReqRecipients()
Dandroid_keymaster.cpp392 std::vector<uint8_t> cosePublicKey = cose_public_key_map.canonicalize().encode(); in GenerateRkpKey()
400 std::vector<uint8_t> enc = macedKey->encode(); in GenerateRkpKey()
461 std::vector<uint8_t> device_info = device_info_map->encode(); in GenerateCsr()
471 .encode()); in GenerateCsr()
507 .encode(), in GenerateCsr()
516 std::vector<uint8_t> payload = coseEncrypted->encode(); in GenerateCsr()
/system/tools/mkbootimg/tests/
Dmkbootimg_test.py672 self.assertEqual(raw_cmdline, cmdline.encode() + b'\x00')
674 extra_cmdline.encode() + b'\x00')
700 self.assertEqual(raw_cmdline, cmdline.encode() + b'\x00')
726 vendor_cmdline.encode() + b'\x00')
/system/extras/verity/fec/
Dmain.cpp172 static int encode(image& ctx, const std::vector<std::string>& inp_filenames, in encode() function
403 return encode(ctx, inp_filenames, fec_filename); in main()
/system/keymaster/include/keymaster/cppcose/
Dcppcose.h229 bytevec encode() { return key_->canonicalize().encode(); } in encode() function
/system/tools/mkbootimg/
Dmkbootimg.py113 args.output.write(pack(f'{BOOT_MAGIC_SIZE}s', BOOT_MAGIC.encode()))
145 VENDOR_BOOT_MAGIC.encode()))
197 args.output.write(pack(f'{BOOT_MAGIC_SIZE}s', BOOT_MAGIC.encode()))
282 arg_bytes = arg.encode() + b'\x00'
/system/security/provisioner/
Drkp_factory_extraction_tool.cpp108 auto bytes = csr.encode(); in writeOutput()
/system/chre/apps/test/common/chre_cross_validator_wifi/src/
Dchre_cross_validator_wifi_manager.cc262 testResult.errorMessage = {.funcs = {.encode = encodeErrorMessage}, in makeTestResultProtoMessage()
/system/update_engine/scripts/update_payload/
Dchecker_unittest.py818 op.data_sha256_hash = hashlib.sha256(fake_data.encode('utf-8')).digest()
819 payload.ReadDataBlob.return_value = fake_data.encode('utf-8')
824 fake_data.replace(' ', '-').encode('utf-8')).digest()
825 payload.ReadDataBlob.return_value = fake_data.encode('utf-8')
/system/security/identity/
DWritableCredential.cpp162 return array.encode().size(); in calcExpectedProofOfProvisioningSize()
DCredentialData.cpp137 vector<uint8_t> credentialData = map.encode(); in saveToDisk()
/system/apex/tests/testdata/sharedlibs/build/
Dshared_libs_repack.py399 pb.canned_fs_config = config_to_str(canned_fs_config).encode('utf-8')
/system/update_engine/scripts/
Dupdate_device.py326 headers += extra_headers.encode()
/system/chre/chpp/api_parser/
DREADME.md54 If conditions 2 or 3 are not met, then optimized encode/decode is still possible

12