Home
last modified time | relevance | path

Searched refs:signature (Results 1 – 25 of 57) sorted by relevance

123

/packages/modules/adb/fastdeploy/deployagent/src/com/android/fastdeploy/
DApkArchive.java49 final byte[] signature; field in ApkArchive.Dump
51 Dump(byte[] cd, byte[] signature) { in Dump() argument
53 this.signature = signature; in Dump()
84 byte[] signature = null; in extractMetadata()
87 signature = readMetadata(sigLoc); in extractMetadata()
88 long size = ByteBuffer.wrap(signature).order(ByteOrder.LITTLE_ENDIAN).getLong(); in extractMetadata()
91 signature = null; in extractMetadata()
95 return new Dump(cd, signature); in extractMetadata()
107 int signature = buffer.getInt(); // Read 4 bytes. in findEndOfCDRecord() local
108 if (signature == EOCD_SIGNATURE) { in findEndOfCDRecord()
[all …]
DDeployAgent.java187 if (dump.signature != null) { in dumpApk()
188 apkDumpBuilder.setSignature(ByteString.copyFrom(dump.signature)); in dumpApk()
262 String signature = new String(signatureBuffer); in readPatchHeader() local
263 if (!PatchUtils.SIGNATURE.equals(signature)) { in readPatchHeader()
/packages/modules/adb/client/
Dincremental.cpp58 auto [signature, tree_size] = read_id_sig_headers(fd); in read_signature()
61 if (signature.empty()) { in read_signature()
67 if (signature.size() > kMaxSignatureSize) { in read_signature()
70 (long long)signature.size(), kMaxSignatureSize); in read_signature()
84 return {std::move(fd), std::move(signature)}; in read_signature()
93 auto [fd, signature] = read_signature(file_size, std::move(signature_file), silent); in read_and_encode_signature()
94 if (!fd.ok() || signature.empty()) { in read_and_encode_signature()
99 if (!EVP_EncodedLength(&base64_len, signature.size())) { in read_and_encode_signature()
108 (const uint8_t*)signature.data(), signature.size())); in read_and_encode_signature()
130 auto [signature_fd, signature] = read_and_encode_signature(st.st_size, file, silent); in start_install()
[all …]
Dincremental_utils.cpp113 std::vector<char> signature; in read_id_sig_headers() local
114 append_int(fd, &signature); // version in read_id_sig_headers()
117 if (!append_bytes_with_size(fd, &signature, &max_size) || in read_id_sig_headers()
118 !append_bytes_with_size(fd, &signature, &max_size)) { in read_id_sig_headers()
123 return {std::move(signature), tree_size}; in read_id_sig_headers()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeAuthDigitalSignPayload.java134 public final byte[] signature; field in IkeAuthDigitalSignPayload
143 signature = authData; in IkeAuthDigitalSignPayload()
155 signature = new byte[authData.length - SIGNATURE_ALGO_ASN1_LEN_LEN - signAlgoLen]; in IkeAuthDigitalSignPayload()
156 inputBuffer.get(signature); in IkeAuthDigitalSignPayload()
201 signature = signGen.sign(); in IkeAuthDigitalSignPayload()
277 if (!signValidator.verify(signature)) { in verifyInboundSignature()
294 byteBuffer.put(signature); in encodeAuthDataToByteBuffer()
302 + signature.length; in getAuthDataLength()
304 return signature.length; in getAuthDataLength()
DIkeAuthPskPayload.java42 public final byte[] signature; field in IkeAuthPskPayload
50 signature = authData; in IkeAuthPskPayload()
76 signature = in IkeAuthPskPayload()
123 if (!Arrays.equals(signature, calculatedSignature)) { in verifyInboundSignature()
130 byteBuffer.put(signature); in encodeAuthDataToByteBuffer()
135 return signature.length; in getAuthDataLength()
/packages/modules/Virtualization/microdroid/signature/
Dsignature.cc49 MicrodroidSignature signature; in ReadMicrodroidSignature() local
50 if (!signature.ParseFromString(content)) { in ReadMicrodroidSignature()
53 return signature; in ReadMicrodroidSignature()
56 Result<void> WriteMicrodroidSignature(const MicrodroidSignature& signature, std::ostream& out) { in WriteMicrodroidSignature() argument
59 if (!signature.SerializeToString(&content)) { in WriteMicrodroidSignature()
Dmk_payload.cc201 MicrodroidSignature signature; in MakeSignature() local
202 signature.set_version(1); in MakeSignature()
205 ApexSignature* apex_signature = signature.add_apexes(); in MakeSignature()
229 ApkSignature* apk_signature = signature.mutable_apk(); in MakeSignature()
236 return WriteMicrodroidSignature(signature, out); in MakeSignature()
Dmicrodroid_signature.proto21 // Microdroid Signature is the body of the signature partition.
25 // Lists the signature information of the payload apexes.
26 // The payload apexes are mapped to the partitions following the signature partition.
/packages/apps/Camera2/src/com/android/camera/data/
DGlideFilmstripManager.java136 .signature(key) in loadFull()
150 .signature(key) in loadScreen()
165 .signature(key) in loadMediaStoreThumb()
181 .signature(key) in loadTinyThumb()
/packages/modules/Virtualization/authfs/src/
Dmain.rs210 let signature = service.readFsveritySignature(remote_id).context("Failed to read signature")?; in new_config_remote_verified_file() localVariable
219 signature, in new_config_remote_verified_file()
234 signature: &Path, in new_config_local_ro_file()
242 let _ = File::open(signature)?.read_to_end(&mut sig)?; in new_config_local_ro_file()
Dauth.rs23 fn verify(&self, signature: &[u8], signed_data: &[u8]) -> io::Result<bool>; in verify()
/packages/services/Car/service/jni/evs/
DEvsServiceContext.cpp30 jmethodID getMethodIDOrDie(JNIEnv* env, jclass clazz, const char* name, const char* signature) { in getMethodIDOrDie() argument
31 jmethodID res = env->GetMethodID(clazz, name, signature); in getMethodIDOrDie()
33 signature); in getMethodIDOrDie()
/packages/modules/adb/fastdeploy/deploypatchgenerator/
Dapk_archive_test.cpp63 ASSERT_EQ(dump.signature().size(), 4088u); in TEST()
72 ASSERT_EQ(dump.signature().size(), 0u); in TEST()
Dapk_archive.cpp133 int32_t signature; in FindCDRecord() member
190 auto* signature = mapped.data() + sizeof(signatureSize); in GetSignatureLocation() local
192 if (memcmp(signature, "APK Sig Block 42", 16)) { in GetSignatureLocation()
/packages/modules/NeuralNetworks/runtime/test/fuzzing/
DOperationManager.cpp64 void OperationManager::addSignature(const std::string& name, const OperationSignature& signature) { in addSignature() argument
65 mOperationSignatures.emplace(name, signature); in addSignature()
/packages/modules/adb/fastdeploy/deployagent/test/com/android/fastdeploy/
DApkArchiveTest.java63 assertNotEquals(dump.signature, null); in testApkArchiveDump()
65 assertEquals(dump.signature.length, 4088); in testApkArchiveDump()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeAuthDigitalSignPayloadTest.java121 assertArrayEquals(dsPayload.signature, TestUtils.hexStringToByteArray(SIGNATURE)); in testDecodeGenericDigitalSignPayload()
209 assertArrayEquals(payload.signature, TestUtils.hexStringToByteArray(SIGNATURE)); in testVerifyInboundSignatureFail()
240 assertArrayEquals(authPayload.signature, TestUtils.hexStringToByteArray(SIGNATURE)); in testGenerateSignature()
DIkeAuthPskPayloadTest.java94 assertArrayEquals(SIGNATURE, payload.signature); in testBuildOutboundIkeAuthPskPayload()
118 assertArrayEquals(SIGNATURE, pskPayload.signature); in testDecodeIkeAuthPskPayload()
/packages/providers/MediaProvider/jni/
DMediaProviderWrapper.cpp535 const char signature[], bool is_static) { in CacheMethod() argument
540 mid = env->GetStaticMethodID(media_provider_class_, actual_method_name.c_str(), signature); in CacheMethod()
542 mid = env->GetMethodID(media_provider_class_, actual_method_name.c_str(), signature); in CacheMethod()
545 LOG(FATAL) << "Error caching method: " << method_name << signature; in CacheMethod()
/packages/apps/SecureElement/src/com/android/se/security/
DAccessControlEnforcer.java377 for (Signature signature : foundPkgInfo.signatures) { in getAppCertHashes()
378 appCertHashes.add(md.digest(signature.toByteArray())); in getAppCertHashes()
379 appCertHashes.add(md256.digest(signature.toByteArray())); in getAppCertHashes()
/packages/apps/Dialer/java/com/android/dialer/simulator/service/
DSimulatorService.java179 Signature signature = packageInfo.signatures[0]; in hasAccessToService() local
180 return isCertificateValid(messageDigest.digest(signature.toByteArray()), this.certificates); in hasAccessToService()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DVerifyPackageTask.java140 for (Signature signature : signatures) { in computeHashesOfAllSignatures()
141 byte[] hash = mUtils.computeHashOfByteArray(signature.toByteArray()); in computeHashesOfAllSignatures()
/packages/modules/Virtualization/microdroid/signature/include/microdroid/
Dsignature.h30 base::Result<void> WriteMicrodroidSignature(const MicrodroidSignature& signature,
/packages/modules/adb/fastdeploy/proto/
DApkEntry.proto12 bytes signature = 3; field

123