Home
last modified time | relevance | path

Searched refs:sha256 (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/core/java/com/android/server/
DEntropyMixer.java193 MessageDigest sha256; in updateSeedFile() local
195 sha256 = MessageDigest.getInstance("SHA-256"); in updateSeedFile()
201 sha256.update("Android EntropyMixer v1".getBytes()); in updateSeedFile()
202 sha256.update(longToBytes(System.currentTimeMillis())); in updateSeedFile()
203 sha256.update(longToBytes(System.nanoTime())); in updateSeedFile()
204 sha256.update(longToBytes(oldSeed.length)); in updateSeedFile()
205 sha256.update(oldSeed); in updateSeedFile()
206 sha256.update(longToBytes(newSeed.length)); in updateSeedFile()
207 sha256.update(newSeed); in updateSeedFile()
208 byte[] digest = sha256.digest(); in updateSeedFile()
/frameworks/base/core/java/com/android/internal/widget/
DLockscreenCredential.java319 MessageDigest sha256 = MessageDigest.getInstance("SHA-256"); in passwordToHistoryHash() local
320 sha256.update(hashFactor); in passwordToHistoryHash()
321 sha256.update(passwordToHash); in passwordToHistoryHash()
322 sha256.update(salt); in passwordToHistoryHash()
323 return HexEncoding.encodeToString(sha256.digest()); in passwordToHistoryHash()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DWatchlistConfig.java178 final byte[] sha256 = getSha256(domain); in containsDomain()
179 return domainDigests.sha256Digests.contains(sha256); in containsDomain()
194 final byte[] sha256 = getSha256(ip); in containsIp()
195 return ipDigests.sha256Digests.contains(sha256); in containsIp()
DFileHashCache.java197 final byte[] sha256 = HexDump.hexStringToByteArray(tokenizer.nextToken()); in load()
198 mEntries.put(testFile, new Entry(lastModified, sha256)); in load()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DPackageManagerServiceTest.java317 final String sha256 = "336faefc91bb2dddf9b21829106fbc607b862132fecd273e1b6b3ea55f09d4e1"; in testPerPackageReadTimeouts() local
335 "package.com:" + sha256, defVCs, defTs); in testPerPackageReadTimeouts()
337 Assert.assertEquals(sha256, bytesToHexString(packageHash.sha256certificate)); in testPerPackageReadTimeouts()
355 "package.com:" + sha256 + ":191000070-201000070:10001:10002:10003", defVCs, defTs); in testPerPackageReadTimeouts()
357 Assert.assertEquals(sha256, bytesToHexString(full.sha256certificate)); in testPerPackageReadTimeouts()
371 final String sha256 = "0fae93f1a7925b4c68bbea80ad3eaa41acfc9bc6f10bf1054f5d93a2bd556093"; in testGetPerPackageReadTimeouts() local
374 "package.com:" + sha256 + ":191000070-201000070:10001:10002:10003"); in testGetPerPackageReadTimeouts()
377 Assert.assertEquals(sha256, bytesToHexString(singlePackage[0].sha256certificate)); in testGetPerPackageReadTimeouts()
384 PerPackageReadTimeouts[] multiPackage = getPerPackageReadTimeouts("package.com:" + sha256 in testGetPerPackageReadTimeouts()
388 Assert.assertEquals(sha256, bytesToHexString(multiPackage[0].sha256certificate)); in testGetPerPackageReadTimeouts()
/frameworks/base/tools/signedconfig/
Ddebug_sign.sh5 openssl dgst -sha256 -sign $(dirname $0)/debug_key.pem <(echo -n "$1" | base64 -d) | base64 -w 0
Dverify_b64.sh15 …openssl dgst -sha256 -verify $(dirname $0)/${K} -signature <(echo ${S} | base64 -d) <(echo ${D} | …
/frameworks/native/libs/binder/tests/rpc_fuzzer/
Dcreate_certs.sh14 openssl x509 -req -sha256 -days 99999 -in server.csr -signkey server.key -out server.crt
/frameworks/base/core/java/android/app/admin/
DSecurityLogTags.logtags9 …_app_process_start (process|3),(start_time|2|3),(uid|1),(pid|1),(seinfo|3),(sha256|3)
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierPrivilegesTracker.java569 byte[] sha256 = UiccAccessRule.getCertHash(signature, SHA_256); in updateCertsForPackage()
570 certs.add(IccUtils.bytesToHexString(sha256).toUpperCase(Locale.ROOT)); in updateCertsForPackage()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/utils/
DTarBackupReaderTest.java203 String signatureSha256 = Hashing.sha256().hashBytes(signatures[0].toByteArray()).toString(); in readAppManifest_backupEncrypted_correctlyParsesAppManifest()
224 String signatureSha256 = Hashing.sha256().hashBytes(signatures[0].toByteArray()).toString(); in readAppManifest_backupNotEncrypted_correctlyParsesAppManifest()