Home
last modified time | relevance | path

Searched refs:digest (Results 1 – 25 of 55) sorted by relevance

123

/frameworks/base/core/java/android/security/net/config/
DPin.java24 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()
DNetworkSecurityTrustManager.java141 if (pinSet.pins.contains(new Pin(algorithm, md.digest(encodedSPKI)))) { in checkPins()
/frameworks/base/core/java/android/content/pm/
DEphemeralResolveInfo.java158 final MessageDigest digest = MessageDigest.getInstance(SHA_ALGORITHM); in generateDigest() local
161 digests.add(digest.digest(hostBytes)); in generateDigest()
167 digests.add(digest.digest(host.getBytes())); in generateDigest()
170 digests.add(digest.digest(hostBytes)); in generateDigest()
175 digests.add(digest.digest(hostBytes)); in generateDigest()
/frameworks/base/keystore/java/android/security/keystore/
DKeyProperties.java552 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/tests/CoreTests/android/core/
DSha1Test.java45 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/obex/javax/obex/
DObexSession.java169 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/
DBackupUtils.java96 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/
DStrictJarVerifier.java96 private final MessageDigest digest; field in StrictJarVerifier.VerifierEntry
104 VerifierEntry(String name, MessageDigest digest, byte[] hash, in VerifierEntry() argument
107 this.digest = digest; in VerifierEntry()
118 digest.update((byte) value); in write()
126 digest.update(buf, off, nbytes); in write()
141 byte[] d = digest.digest(); in verify()
492 byte[] b = md.digest(); in verify()
/frameworks/base/services/core/java/com/android/server/
DPersistentDataBlockService.java195 byte[] digest = computeDigestLocked(storedDigest); in enforceChecksumValidity()
196 if (digest == null || !Arrays.equals(storedDigest, digest)) { in enforceChecksumValidity()
207 byte[] digest = computeDigestLocked(null); in computeAndWriteDigestLocked()
208 if (digest != null) { in computeAndWriteDigestLocked()
219 outputStream.write(digest, 0, DIGEST_SIZE_BYTES); in computeAndWriteDigestLocked()
272 return md.digest(); in computeDigestLocked()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDebuggingManager.java309 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/docs/html-intl/intl/ru/training/articles/
Dsecurity-config.jd310 &lt;pin digest="SHA-256"&gt;7HIpactkIAq2Y49orFOOQKurWxmmSFZhBCoQYcRhJ3Y=&lt;/pin&gt;
312 &lt;pin digest="SHA-256"&gt;fwza0LRMXouZHRC8Ei+4PyuldPDcf3UKgO/04cDM1oE=&lt;/pin&gt;
387 &lt;pin digest="..."&gt;...&lt;/pin&gt;
724 &lt;pin digest=["SHA-256"]&gt;base64 encoded digest of X.509
736 {@code digest}
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
DSPVerifier.java161 MessageDigest digest = MessageDigest.getInstance(hash.getJCEName()); in verify() local
162 byte[] computed = digest.digest(iconData.getIconData()); in verify()
/frameworks/base/core/java/android/net/http/
DSslCertificate.java274 byte[] digest = md.digest(bytes); in getDigest()
275 return fingerprint(digest); in getDigest()
/frameworks/base/docs/html-intl/intl/zh-cn/training/articles/
Dsecurity-config.jd311 &lt;pin digest="SHA-256"&gt;7HIpactkIAq2Y49orFOOQKurWxmmSFZhBCoQYcRhJ3Y=&lt;/pin&gt;
313 &lt;pin digest="SHA-256"&gt;fwza0LRMXouZHRC8Ei+4PyuldPDcf3UKgO/04cDM1oE=&lt;/pin&gt;
389 &lt;pin digest="..."&gt;...&lt;/pin&gt;
726 &lt;pin digest=["SHA-256"]&gt;base64 encoded digest of X.509
738 {@code digest}
/frameworks/base/core/java/android/util/apk/
DApkSignatureSchemeV2Verifier.java331 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/docs/html-intl/intl/ja/training/articles/
Dsecurity-config.jd311 &lt;pin digest="SHA-256"&gt;7HIpactkIAq2Y49orFOOQKurWxmmSFZhBCoQYcRhJ3Y=&lt;/pin&gt;
313 &lt;pin digest="SHA-256"&gt;fwza0LRMXouZHRC8Ei+4PyuldPDcf3UKgO/04cDM1oE=&lt;/pin&gt;
389 &lt;pin digest="..."&gt;...&lt;/pin&gt;
726 &lt;pin digest=["SHA-256"]&gt;base64 encoded digest of X.509
738 {@code digest}
/frameworks/base/docs/html-intl/intl/ko/training/articles/
Dsecurity-config.jd311 &lt;pin digest="SHA-256"&gt;7HIpactkIAq2Y49orFOOQKurWxmmSFZhBCoQYcRhJ3Y=&lt;/pin&gt;
313 &lt;pin digest="SHA-256"&gt;fwza0LRMXouZHRC8Ei+4PyuldPDcf3UKgO/04cDM1oE=&lt;/pin&gt;
389 &lt;pin digest="..."&gt;...&lt;/pin&gt;
726 &lt;pin digest=["SHA-256"]&gt;base64 encoded digest of X.509
738 {@code digest}
/frameworks/base/docs/html-intl/intl/zh-tw/training/articles/
Dsecurity-config.jd310 &lt;pin digest="SHA-256"&gt;7HIpactkIAq2Y49orFOOQKurWxmmSFZhBCoQYcRhJ3Y=&lt;/pin&gt;
312 &lt;pin digest="SHA-256"&gt;fwza0LRMXouZHRC8Ei+4PyuldPDcf3UKgO/04cDM1oE=&lt;/pin&gt;
387 &lt;pin digest="..."&gt;...&lt;/pin&gt;
724 &lt;pin digest=["SHA-256"]&gt;base64 encoded digest of X.509
736 {@code digest}
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DUtils.java122 return byteArrayToHexString(digester.digest()); in computeNormalizedSha256Fingerprint()
/frameworks/base/services/core/java/com/android/server/pm/
DEphemeralApplicationRegistry.java683 final byte[] digest = messageDigest.digest(); in computePackageCertDigest()
684 final int digestLength = digest.length; in computePackageCertDigest()
689 final int byteHex = digest[i] & 0xFF; in computePackageCertDigest()
DProcessLoggingHandler.java110 return md.digest(); in computeHashOfApkFile()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DCustomPrinterIconCache.java75 sb.append(String.format("%#040x", new java.math.BigInteger(1, md.digest()))); in getIconFileName()
/frameworks/base/docs/html/training/articles/
Dsecurity-config.jd312 &lt;pin digest="SHA-256"&gt;7HIpactkIAq2Y49orFOOQKurWxmmSFZhBCoQYcRhJ3Y=&lt;/pin&gt;
314 &lt;pin digest="SHA-256"&gt;fwza0LRMXouZHRC8Ei+4PyuldPDcf3UKgO/04cDM1oE=&lt;/pin&gt;
390 &lt;pin digest="..."&gt;...&lt;/pin&gt;
731 &lt;pin digest=["SHA-256"]&gt;base64 encoded digest of X.509
743 {@code digest}
747 The digest algorithm used to generate the pin. Currently, only
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/pps/
DCredential.java147 fingerPrint = digester.digest(enterpriseConfig.getClientCertificate().getEncoded()); in Credential()
159 fingerPrint = digester.digest(octets); in Credential()
/frameworks/base/docs/html-intl/intl/in/training/articles/
Dsecurity-config.jd311 &lt;pin digest="SHA-256"&gt;7HIpactkIAq2Y49orFOOQKurWxmmSFZhBCoQYcRhJ3Y=&lt;/pin&gt;
313 &lt;pin digest="SHA-256"&gt;fwza0LRMXouZHRC8Ei+4PyuldPDcf3UKgO/04cDM1oE=&lt;/pin&gt;
389 &lt;pin digest="..."&gt;...&lt;/pin&gt;
726 &lt;pin digest=["SHA-256"]&gt;base64 encoded digest of X.509
738 {@code digest}

123