/frameworks/base/core/java/android/security/net/config/ |
D | Pin.java | 24 public final byte[] digest; field in Pin 28 public Pin(String digestAlgorithm, byte[] digest) { in Pin() argument 30 this.digest = digest; in Pin() 31 mHashCode = Arrays.hashCode(digest) ^ digestAlgorithm.hashCode(); in Pin() 70 if (!Arrays.equals(digest, other.digest)) { in equals()
|
D | DirectoryCertificateSource.java | 215 byte[] digest = MessageDigest.getInstance("MD5").digest(principal.getEncoded()); 217 return (((digest[offset++] & 0xff) << 0) | ((digest[offset++] & 0xff) << 8) 218 | ((digest[offset++] & 0xff) << 16) | ((digest[offset] & 0xff) << 24));
|
/frameworks/base/core/java/android/content/pm/ |
D | InstantAppResolveInfo.java | 86 public InstantAppResolveInfo(@NonNull InstantAppDigest digest, @Nullable String packageName, in InstantAppResolveInfo() argument 88 this(digest, packageName, filters, (long) versionCode, null /* extras */); in InstantAppResolveInfo() 92 public InstantAppResolveInfo(@NonNull InstantAppDigest digest, @Nullable String packageName, in InstantAppResolveInfo() argument 95 this(digest, packageName, filters, versionCode, extras, false); in InstantAppResolveInfo() 113 private InstantAppResolveInfo(@NonNull InstantAppDigest digest, @Nullable String packageName, in InstantAppResolveInfo() argument 121 mDigest = digest; in InstantAppResolveInfo() 289 final MessageDigest digest = MessageDigest.getInstance(SHA_ALGORITHM); in generateDigest() local 292 digests.add(digest.digest(hostBytes)); in generateDigest() 298 digests.add(digest.digest(hostName.getBytes())); in generateDigest() 302 digests.add(digest.digest(hostBytes)); in generateDigest() [all …]
|
D | InstantAppRequest.java | 46 public final InstantAppResolveInfo.InstantAppDigest digest; field in InstantAppRequest 59 digest = new InstantAppResolveInfo.InstantAppDigest( in InstantAppRequest() 62 digest = InstantAppResolveInfo.InstantAppDigest.UNDEFINED; in InstantAppRequest()
|
/frameworks/base/services/core/java/com/android/server/net/watchlist/ |
D | HarmfulDigests.java | 45 public boolean contains(byte[] digest) { in contains() argument 46 return mDigestSet.contains(HexDump.toHexString(digest)); in contains() 50 for (String digest : mDigestSet) { in dump() 51 pw.println(digest); in dump()
|
D | WatchlistLoggingHandler.java | 234 final byte[] digest = getDigestFromUid(uid); in insertRecord() 235 if (digest == null) { in insertRecord() 239 final boolean result = mDbHelper.insertNewRecord(digest, cncHost, timestamp); in insertRecord() 307 byte[] digest = getDigestFromUid(apps.get(i).uid); in getAllDigestsForReport() 308 if (digest != null) { in getAllDigestsForReport() 309 result.add(HexDump.toHexString(digest)); in getAllDigestsForReport()
|
/frameworks/base/keystore/java/android/security/keystore/ |
D | KeyProperties.java | 574 public static int toKeymaster(@NonNull @DigestEnum String digest) { in toKeymaster() argument 575 switch (digest.toUpperCase(Locale.US)) { in toKeymaster() 591 throw new IllegalArgumentException("Unsupported digest algorithm: " + digest); in toKeymaster() 596 public static @DigestEnum String fromKeymaster(int digest) { in fromKeymaster() argument 597 switch (digest) { in fromKeymaster() 613 throw new IllegalArgumentException("Unsupported digest algorithm: " + digest); in fromKeymaster() 618 public static @DigestEnum String fromKeymasterToSignatureAlgorithmDigest(int digest) { in fromKeymasterToSignatureAlgorithmDigest() argument 619 switch (digest) { in fromKeymasterToSignatureAlgorithmDigest() 635 throw new IllegalArgumentException("Unsupported digest algorithm: " + digest); in fromKeymasterToSignatureAlgorithmDigest() 646 for (int digest : digests) { in allFromKeymaster() [all …]
|
/frameworks/base/core/tests/privacytests/src/android/privacy/ |
D | RapporEncoderTest.java | 202 byte[] digest = md5.digest(testingSecret.getBytes(StandardCharsets.UTF_8)); in makeTestingUserSecret() 203 assertEquals(16, digest.length); in makeTestingUserSecret() 204 return ByteBuffer.allocate(48).put(digest).put(digest).put(digest).array(); in makeTestingUserSecret()
|
D | LongitudinalReportingEncoderTest.java | 413 byte[] digest = md5.digest(testingSecret.getBytes(StandardCharsets.UTF_8)); in makeTestingUserSecret() 414 assertEquals(16, digest.length); in makeTestingUserSecret() 415 return ByteBuffer.allocate(48).put(digest).put(digest).put(digest).array(); in makeTestingUserSecret()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_security_VerityUtils.cpp | 49 __u8 digest[]; member 86 __u8 digest[]; member 171 jbyteArray constructFsveritySignedData(JNIEnv* env, jobject /* clazz */, jbyteArray digest) { in constructFsveritySignedData() argument 177 if (env->GetArrayLength(digest) != kSha256Bytes) { in constructFsveritySignedData() 179 env->GetArrayLength(digest)); in constructFsveritySignedData() 182 const jbyte* src = env->GetByteArrayElements(digest, nullptr); in constructFsveritySignedData() 183 memcpy(data->digest, src, kSha256Bytes); in constructFsveritySignedData()
|
/frameworks/base/obex/javax/obex/ |
D | ObexSession.java | 169 byte[] digest = new byte[challenge.length + password.length + 1]; in handleAuthChall() 170 System.arraycopy(challenge, 0, digest, 0, challenge.length); in handleAuthChall() 172 digest[challenge.length] = (byte)0x3A; in handleAuthChall() 173 System.arraycopy(password, 0, digest, challenge.length + 1, password.length); in handleAuthChall() 179 System.arraycopy(ObexHelper.computeMd5Hash(digest), 0, header.mAuthResp, 2, 16); in handleAuthChall()
|
/frameworks/base/services/core/java/com/android/server/backup/ |
D | BackupUtils.java | 106 MessageDigest digest = MessageDigest.getInstance("SHA-256"); in hashSignature() local 107 digest.update(signature); in hashSignature() 108 return digest.digest(); in hashSignature()
|
/frameworks/base/core/java/android/util/jar/ |
D | StrictJarVerifier.java | 104 private final MessageDigest digest; field in StrictJarVerifier.VerifierEntry 112 VerifierEntry(String name, MessageDigest digest, byte[] hash, in VerifierEntry() argument 115 this.digest = digest; in VerifierEntry() 126 digest.update((byte) value); in write() 134 digest.update(buf, off, nbytes); in write() 149 byte[] d = digest.digest(); in verify() 511 byte[] b = md.digest(); in verify()
|
/frameworks/base/telephony/java/android/telephony/mbms/ |
D | DownloadRequest.java | 365 MessageDigest digest; in getHash() local 367 digest = MessageDigest.getInstance("SHA-256"); in getHash() 373 digest.update(sourceUri.toString().getBytes(StandardCharsets.UTF_8)); in getHash() 374 digest.update(destinationUri.toString().getBytes(StandardCharsets.UTF_8)); in getHash() 376 digest.update(serializedResultIntentForApp.getBytes(StandardCharsets.UTF_8)); in getHash() 380 return Base64.encodeToString(digest.digest(), Base64.URL_SAFE | Base64.NO_WRAP); in getHash()
|
/frameworks/base/core/java/android/privacy/internal/rappor/ |
D | RapporEncoder.java | 84 MessageDigest digest = MessageDigest.getInstance("SHA-256"); in getInsecureSeed() local 85 byte[] bytes = digest.digest(input.getBytes(StandardCharsets.UTF_8)); in getInsecureSeed()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerBackupHelper.java | 192 final String digest = PackageUtils.computeSignaturesSha256Digest( in backupAccountAccessPermissions() local 194 if (digest != null) { in backupAccountAccessPermissions() 199 serializer.attribute(null, ATTR_DIGEST, digest); in backupAccountAccessPermissions() 241 String digest = parser.getAttributeValue(null, ATTR_DIGEST); in restoreAccountAccessPermissions() local 242 if (TextUtils.isEmpty(digest)) { in restoreAccountAccessPermissions() 247 accountDigest, packageName, digest, userId); in restoreAccountAccessPermissions()
|
/frameworks/base/core/java/android/os/ |
D | SystemProperties.java | 259 final MessageDigest digest = MessageDigest.getInstance("SHA-1"); in digestOf() local 262 digest.update(item.getBytes(StandardCharsets.UTF_8)); in digestOf() 264 return HexEncoding.encodeToString(digest.digest()).toLowerCase(); in digestOf()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | SyntheticPasswordCrypto.java | 203 MessageDigest digest = MessageDigest.getInstance("SHA-512"); in personalisedHash() local 210 digest.update(personalisation); in personalisedHash() 212 digest.update(data); in personalisedHash() 214 return digest.digest(); in personalisedHash()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | DataIntegrityChecker.java | 104 byte[] digest = getDigest(data); in update() 105 if (digest == null || digest.length < 1) { in update() 109 EncryptedData integrityData = encrypt(digest, alias); in update() 166 return MessageDigest.getInstance(DIGEST_ALGORITHM).digest(data); in getDigest()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | ServiceProviderVerifier.java | 208 MessageDigest digest = MessageDigest.getInstance("SHA-256"); in computeHash() local 209 return digest.digest(input); in computeHash()
|
/frameworks/base/services/core/java/com/android/server/ |
D | PersistentDataBlockService.java | 276 byte[] digest = computeDigestLocked(storedDigest); in enforceChecksumValidity() 277 if (digest == null || !Arrays.equals(storedDigest, digest)) { in enforceChecksumValidity() 288 byte[] digest = computeDigestLocked(null); in computeAndWriteDigestLocked() 289 if (digest != null) { in computeAndWriteDigestLocked() 300 outputStream.write(digest, 0, DIGEST_SIZE_BYTES); in computeAndWriteDigestLocked() 353 return md.digest(); in computeDigestLocked()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/src/main/java/com/google/protobuf/jruby/ |
D | RubyMap.java | 229 MessageDigest digest = MessageDigest.getInstance("SHA-256"); in hash() local 231 digest.update((byte) key.hashCode()); in hash() 232 digest.update((byte) table.get(key).hashCode()); in hash() 234 return context.runtime.newString(new ByteList(digest.digest())); in hash()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | InstantAppResolver.java | 135 requestObj.digest.getDigestPrefixSecure(), requestObj.userId, token); in doInstantAppResolutionPhaseOne() 139 requestObj.userId, origIntent.getPackage(), requestObj.digest, token); in doInstantAppResolutionPhaseOne() 194 0 /*userId*/, origIntent.getPackage(), requestObj.digest, in doInstantAppResolutionPhaseTwo() 227 requestObj.digest.getDigestPrefixSecure(), requestObj.userId, token, callback, in doInstantAppResolutionPhaseTwo() 362 InstantAppDigest digest, String token) { in filterInstantAppIntent() argument 363 final int[] shaPrefix = digest.getDigestPrefix(); in filterInstantAppIntent() 364 final byte[][] digestBytes = digest.getDigestBytes(); in filterInstantAppIntent()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/ |
D | ReportEncoderTests.java | 91 final String digest = appProto.appDigest; in testReportUtils_serializeReport() local 92 assertEquals(map.get(digest), appProto.encodedResult); in testReportUtils_serializeReport()
|
/frameworks/base/core/java/android/util/apk/ |
D | ApkSignatureSchemeV2Verifier.java | 305 ByteBuffer digest = getLengthPrefixedSlice(digests); in verifySigner() local 306 if (digest.remaining() < 8) { in verifySigner() 309 int sigAlgorithm = digest.getInt(); in verifySigner() 312 contentDigest = readLengthPrefixedByteArray(digest); in verifySigner()
|