Home
last modified time | relevance | path

Searched refs:digests (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/services/core/java/com/android/server/net/watchlist/
DHarmfulDigests.java36 HarmfulDigests(List<byte[]> digests) { in HarmfulDigests() argument
38 final int size = digests.size(); in HarmfulDigests()
40 tmpDigestSet.add(HexDump.toHexString(digests.get(i))); in HarmfulDigests()
DHarmfulCrcs.java36 HarmfulCrcs(List<byte[]> digests) { in HarmfulCrcs() argument
38 final int size = digests.size(); in HarmfulCrcs()
40 byte[] bytes = digests.get(i); in HarmfulCrcs()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DSigningDetailsTest.java941 Set<String> digests = createDigestSet(FIRST_SIGNATURE); in hasAncestorOrSelfWithDigest_unknownDetails_returnsFalse() local
943 assertFalse(details.hasAncestorOrSelfWithDigest(digests)); in hasAncestorOrSelfWithDigest_unknownDetails_returnsFalse()
951 Set<String> digests = createDigestSet(FIRST_SIGNATURE, SECOND_SIGNATURE); in hasAncestorOrSelfWithDigest_singleSignerInSet_returnsTrue() local
953 assertTrue(details.hasAncestorOrSelfWithDigest(digests)); in hasAncestorOrSelfWithDigest_singleSignerInSet_returnsTrue()
961 Set<String> digests = createDigestSet(SECOND_SIGNATURE, THIRD_SIGNATURE); in hasAncestorOrSelfWithDigest_singleSignerNotInSet_returnsFalse() local
963 assertFalse(details.hasAncestorOrSelfWithDigest(digests)); in hasAncestorOrSelfWithDigest_singleSignerNotInSet_returnsFalse()
971 Set<String> digests = createDigestSet(FIRST_SIGNATURE, SECOND_SIGNATURE, THIRD_SIGNATURE); in hasAncestorOrSelfWithDigest_multipleSignersInSet_returnsTrue() local
973 assertTrue(details.hasAncestorOrSelfWithDigest(digests)); in hasAncestorOrSelfWithDigest_multipleSignersInSet_returnsTrue()
982 Set<String> digests = createDigestSet(FIRST_SIGNATURE, THIRD_SIGNATURE); in hasAncestorOrSelfWithDigest_multipleSignersNotInSet_returnsFalse() local
984 assertFalse(details.hasAncestorOrSelfWithDigest(digests)); in hasAncestorOrSelfWithDigest_multipleSignersNotInSet_returnsFalse()
[all …]
/frameworks/base/core/java/android/content/pm/
DInstantAppResolveInfo.java287 ArrayList<byte[]> digests = new ArrayList<>(); 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()
308 digests.add(digest.digest(hostBytes)); in generateDigest()
316 return digests.toArray(new byte[digests.size()][]); in generateDigest()
/frameworks/base/core/java/android/util/apk/
DSourceStampVerifier.java379 ByteBuffer digests = getLengthPrefixedSlice(signedData); in getApkContentDigestsFromSignatureBlock() local
380 while (digests.hasRemaining()) { in getApkContentDigestsFromSignatureBlock()
381 ByteBuffer digest = getLengthPrefixedSlice(digests); in getApkContentDigestsFromSignatureBlock()
393 Map<Integer, byte[]> digests = new HashMap<>(); in getSignatureSchemeDigests() local
398 digests.put( in getSignatureSchemeDigests()
401 return digests; in getSignatureSchemeDigests()
406 List<Pair<Integer, byte[]>> digests = new ArrayList<>(); in getApkDigests() local
408 digests.add(Pair.create(apkContentDigest.getKey(), apkContentDigest.getValue())); in getApkDigests()
410 digests.sort(Comparator.comparing(pair -> pair.first)); in getApkDigests()
411 return digests; in getApkDigests()
DApkSignatureSchemeV2Verifier.java303 ByteBuffer digests = getLengthPrefixedSlice(signedData); in verifySigner() local
306 while (digests.hasRemaining()) { in verifySigner()
309 ByteBuffer digest = getLengthPrefixedSlice(digests); in verifySigner()
DApkSignatureSchemeV3Verifier.java362 ByteBuffer digests = getLengthPrefixedSlice(signedData); in verifySigner() local
365 while (digests.hasRemaining()) { in verifySigner()
368 ByteBuffer digest = getLengthPrefixedSlice(digests); in verifySigner()
/frameworks/base/keystore/java/android/security/keystore/
DKeyProperties.java701 public static @DigestEnum String[] allFromKeymaster(@NonNull Collection<Integer> digests) { in allFromKeymaster() argument
702 if (digests.isEmpty()) { in allFromKeymaster()
705 String[] result = new String[digests.size()]; in allFromKeymaster()
707 for (int digest : digests) { in allFromKeymaster()
715 public static int[] allToKeymaster(@Nullable @DigestEnum String[] digests) { in allToKeymaster() argument
716 if ((digests == null) || (digests.length == 0)) { in allToKeymaster()
719 int[] result = new int[digests.length]; in allToKeymaster()
721 for (@DigestEnum String digest : digests) { in allToKeymaster()
DKeyProtection.java248 @KeyProperties.DigestEnum String[] digests, in KeyProtection() argument
271 mDigests = ArrayUtils.cloneIfNotEmpty(digests); in KeyProtection()
721 public Builder setDigests(@KeyProperties.DigestEnum String... digests) { in setDigests() argument
722 mDigests = ArrayUtils.cloneIfNotEmpty(digests); in setDigests()
DKeyInfo.java103 @KeyProperties.DigestEnum String[] digests, in KeyInfo() argument
127 mDigests = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(digests)); in KeyInfo()
DKeyGenParameterSpec.java345 @KeyProperties.DigestEnum String[] digests, in KeyGenParameterSpec() argument
403 mDigests = ArrayUtils.cloneIfNotEmpty(digests); in KeyGenParameterSpec()
1211 public Builder setDigests(@KeyProperties.DigestEnum String... digests) { in setDigests() argument
1212 mDigests = ArrayUtils.cloneIfNotEmpty(digests); in setDigests()
DParcelableKeyGenParameterSpec.java154 final String[] digests = in.createStringArray(); in ParcelableKeyGenParameterSpec() local
191 digests, in ParcelableKeyGenParameterSpec()
/frameworks/base/core/java/android/util/
DPackageUtils.java68 final String[] digests = new String[signatureCount]; in computeSignaturesSha256Digests() local
70 digests[i] = computeSha256Digest(signatures[i].toByteArray(), separator); in computeSignaturesSha256Digests()
72 return digests; in computeSignaturesSha256Digests()
/frameworks/base/services/core/java/com/android/server/pm/
DApkChecksums.java441 final Checksum[] digests = readChecksums(digestsFile); in getInstallerChecksums() local
446 final Certificate[] certificates = verifySignature(digests, in getInstallerChecksums()
495 for (Checksum digest : digests) { in getInstallerChecksums()
504 for (Checksum digest : digests) { in getInstallerChecksums()
852 byte[][] digests = ApkSigningBlockUtils.computeContentDigestsPer1MbChunk(digestAlgos, in calculatePartialChecksumsIfRequested()
857 checksums.put(checksumKind, new ApkChecksum(split, checksumKind, digests[i])); in calculatePartialChecksumsIfRequested()
/frameworks/base/keystore/java/android/security/keystore2/
DAndroidKeyStoreSecretKeyFactorySpi.java230 String[] digests = digestsList.toArray(new String[0]); in getKeyInfo() local
251 digests, in getKeyInfo()
/frameworks/base/config/
Dpreloaded-classes12523 com.android.org.bouncycastle.crypto.digests.AndroidDigestFactory
12524 com.android.org.bouncycastle.crypto.digests.AndroidDigestFactoryBouncyCastle
12525 com.android.org.bouncycastle.crypto.digests.AndroidDigestFactoryInterface
12526 com.android.org.bouncycastle.crypto.digests.AndroidDigestFactoryOpenSSL
12527 com.android.org.bouncycastle.crypto.digests.EncodableDigest
12528 com.android.org.bouncycastle.crypto.digests.GeneralDigest
12529 com.android.org.bouncycastle.crypto.digests.OpenSSLDigest$MD5
12530 com.android.org.bouncycastle.crypto.digests.OpenSSLDigest$SHA1
12531 com.android.org.bouncycastle.crypto.digests.OpenSSLDigest
12532 com.android.org.bouncycastle.crypto.digests.SHA1Digest
Dboot-image-profile.txt23192 HSPLcom/android/org/bouncycastle/crypto/digests/AndroidDigestFactory;->getSHA1()Lcom/android/org/bo…
23193 HSPLcom/android/org/bouncycastle/crypto/digests/AndroidDigestFactoryOpenSSL;->getSHA1()Lcom/android…
23194 HSPLcom/android/org/bouncycastle/crypto/digests/OpenSSLDigest$SHA1;-><init>()V
23195 HSPLcom/android/org/bouncycastle/crypto/digests/OpenSSLDigest;-><init>(Ljava/lang/String;I)V
23196 HSPLcom/android/org/bouncycastle/crypto/digests/OpenSSLDigest;->doFinal([BI)I
23197 HSPLcom/android/org/bouncycastle/crypto/digests/OpenSSLDigest;->getByteLength()I
23198 HSPLcom/android/org/bouncycastle/crypto/digests/OpenSSLDigest;->getDigestSize()I
23199 HSPLcom/android/org/bouncycastle/crypto/digests/OpenSSLDigest;->reset()V
23200 HSPLcom/android/org/bouncycastle/crypto/digests/OpenSSLDigest;->update([BII)V
23217 …st;Lcom/android/org/bouncycastle/crypto/digests/OpenSSLDigest$SHA1;,Lcom/android/org/bouncycastle/…
[all …]