/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 | NetworkSecurityTrustManager.java | 141 if (pinSet.pins.contains(new Pin(algorithm, md.digest(encodedSPKI)))) { in checkPins()
|
D | XmlConfigSource.java | 122 String digest = parser.getText().trim(); in parsePin() local 125 decodedDigest = Base64.decode(digest, 0); in parsePin()
|
/frameworks/base/core/java/android/content/pm/ |
D | InstantAppResolveInfo.java | 49 public InstantAppResolveInfo(@NonNull InstantAppDigest digest, @Nullable String packageName, in InstantAppResolveInfo() argument 56 mDigest = digest; in InstantAppResolveInfo() 168 final MessageDigest digest = MessageDigest.getInstance(SHA_ALGORITHM); in generateDigest() local 171 digests.add(digest.digest(hostBytes)); in generateDigest() 177 digests.add(digest.digest(hostName.getBytes())); in generateDigest() 181 digests.add(digest.digest(hostBytes)); in generateDigest() 187 digests.add(digest.digest(hostBytes)); in generateDigest()
|
D | EphemeralResolveInfo.java | 63 public EphemeralResolveInfo(@NonNull EphemeralDigest digest, @Nullable String packageName, in EphemeralResolveInfo() argument 65 this(digest, packageName, filters, -1 /*versionCode*/); in EphemeralResolveInfo() 68 public EphemeralResolveInfo(@NonNull EphemeralDigest digest, @Nullable String packageName, in EphemeralResolveInfo() argument 71 digest.getInstantAppDigest(), packageName, in EphemeralResolveInfo()
|
/frameworks/base/tests/CoreTests/android/core/ |
D | Sha1Test.java | 45 MessageDigest digest = MessageDigest.getInstance("SHA-1"); in testSha1() local 49 digest.update(mTestData[i].input.getBytes()); in testSha1() 50 byte[] hash = digest.digest(); in testSha1()
|
/frameworks/base/keystore/java/android/security/keystore/ |
D | KeyProperties.java | 552 public static int toKeymaster(@NonNull @DigestEnum String digest) { in toKeymaster() argument 553 switch (digest.toUpperCase(Locale.US)) { in toKeymaster() 569 throw new IllegalArgumentException("Unsupported digest algorithm: " + digest); in toKeymaster() 574 public static @DigestEnum String fromKeymaster(int digest) { in fromKeymaster() argument 575 switch (digest) { in fromKeymaster() 591 throw new IllegalArgumentException("Unsupported digest algorithm: " + digest); in fromKeymaster() 596 public static @DigestEnum String fromKeymasterToSignatureAlgorithmDigest(int digest) { in fromKeymasterToSignatureAlgorithmDigest() argument 597 switch (digest) { in fromKeymasterToSignatureAlgorithmDigest() 613 throw new IllegalArgumentException("Unsupported digest algorithm: " + digest); in fromKeymasterToSignatureAlgorithmDigest() 624 for (int digest : digests) { in allFromKeymaster() [all …]
|
/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 | 96 MessageDigest digest = MessageDigest.getInstance("SHA-256"); in hashSignature() local 97 digest.update(signature); in hashSignature() 98 return digest.digest(); in hashSignature()
|
/frameworks/base/core/java/android/util/jar/ |
D | StrictJarVerifier.java | 92 private final MessageDigest digest; field in StrictJarVerifier.VerifierEntry 100 VerifierEntry(String name, MessageDigest digest, byte[] hash, in VerifierEntry() argument 103 this.digest = digest; in VerifierEntry() 114 digest.update((byte) value); in write() 122 digest.update(buf, off, nbytes); in write() 137 byte[] d = digest.digest(); in verify() 488 byte[] b = md.digest(); in verify()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | InstantAppResolver.java | 102 final InstantAppDigest digest = in doInstantAppResolutionPhaseOne() local 104 final int[] shaPrefix = digest.getDigestPrefix(); in doInstantAppResolutionPhaseOne() 113 requestObj.userId, intent.getPackage(), digest, token); in doInstantAppResolutionPhaseOne() 153 final InstantAppDigest digest = new InstantAppDigest(hostName, 5 /*maxDigests*/); in doInstantAppResolutionPhaseTwo() local 154 final int[] shaPrefix = digest.getDigestPrefix(); in doInstantAppResolutionPhaseTwo() 168 0 /*userId*/, intent.getPackage(), digest, token); in doInstantAppResolutionPhaseTwo() 311 InstantAppDigest digest, String token) { in filterInstantAppIntent() argument 312 final int[] shaPrefix = digest.getDigestPrefix(); in filterInstantAppIntent() 313 final byte[][] digestBytes = digest.getDigestBytes(); in filterInstantAppIntent()
|
D | ProcessLoggingHandler.java | 110 return md.digest(); in computeHashOfApkFile()
|
/frameworks/base/services/core/java/com/android/server/ |
D | SyntheticPasswordCrypto.java | 180 MessageDigest digest = MessageDigest.getInstance("SHA-512"); in personalisedHash() local 187 digest.update(personalisation); in personalisedHash() 189 digest.update(data); in personalisedHash() 191 return digest.digest(); in personalisedHash()
|
D | PersistentDataBlockService.java | 220 byte[] digest = computeDigestLocked(storedDigest); in enforceChecksumValidity() 221 if (digest == null || !Arrays.equals(storedDigest, digest)) { in enforceChecksumValidity() 232 byte[] digest = computeDigestLocked(null); in computeAndWriteDigestLocked() 233 if (digest != null) { in computeAndWriteDigestLocked() 244 outputStream.write(digest, 0, DIGEST_SIZE_BYTES); in computeAndWriteDigestLocked() 297 return md.digest(); in computeDigestLocked()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerBackupHelper.java | 172 String digest = PackageUtils.computePackageCertSha256Digest( in backupAccountAccessPermissions() local 174 if (digest != null) { in backupAccountAccessPermissions() 179 serializer.attribute(null, ATTR_DIGEST, digest); in backupAccountAccessPermissions() 221 String digest = parser.getAttributeValue(null, ATTR_DIGEST); in restoreAccountAccessPermissions() local 222 if (TextUtils.isEmpty(digest)) { in restoreAccountAccessPermissions() 227 accountDigest, packageName, digest, userId); in restoreAccountAccessPermissions()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbDebuggingManager.java | 309 byte[] digest; in getFingerprints() 311 digest = digester.digest(Base64.decode(base64_data, Base64.DEFAULT)); in getFingerprints() 316 for (int i = 0; i < digest.length; i++) { in getFingerprints() 317 sb.append(hex.charAt((digest[i] >> 4) & 0xf)); in getFingerprints() 318 sb.append(hex.charAt(digest[i] & 0xf)); in getFingerprints() 319 if (i < digest.length - 1) in getFingerprints()
|
/frameworks/base/core/java/android/util/ |
D | PackageUtils.java | 83 return ByteStringUtils.toHexString(messageDigest.digest()); in computeSha256Digest()
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/ |
D | SPVerifier.java | 162 MessageDigest digest = MessageDigest.getInstance(hash.getJCEName()); in verify() local 163 byte[] computed = digest.digest(iconData.getIconData()); in verify()
|
/frameworks/base/core/java/android/net/http/ |
D | SslCertificate.java | 274 byte[] digest = md.digest(bytes); in getDigest() 275 return fingerprint(digest); in getDigest()
|
/frameworks/base/core/java/android/util/apk/ |
D | ApkSignatureSchemeV2Verifier.java | 331 ByteBuffer digest = getLengthPrefixedSlice(digests); in verifySigner() local 332 if (digest.remaining() < 8) { in verifySigner() 335 int sigAlgorithm = digest.getInt(); in verifySigner() 338 contentDigest = readLengthPrefixedByteArray(digest); in verifySigner() 527 md.digest( in computeContentDigests() 555 byte[] output = md.digest(input); in computeContentDigests()
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
D | Utils.java | 122 return byteArrayToHexString(digester.digest()); in computeNormalizedSha256Fingerprint()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
D | CustomPrinterIconCache.java | 75 sb.append(String.format("%#040x", new java.math.BigInteger(1, md.digest()))); in getIconFileName()
|
/frameworks/base/services/core/java/com/android/server/updates/ |
D | CertificateTransparencyLogInstallReceiver.java | 153 byte[] id = MessageDigest.getInstance("SHA-256").digest(keyBytes); in getLogFileName()
|
D | ConfigUpdateInstallReceiver.java | 158 byte[] fingerprint = dgst.digest(content); in getCurrentHash()
|
/frameworks/base/telephony/java/android/telephony/ |
D | Rlog.java | 148 byte[] result = messageDigest.digest(input); in secureHash()
|